mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
sticky_refnum is now saved and restored
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1197 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
980d6ca3fd
commit
89abfaf9cf
@ -92,7 +92,8 @@ void windows_restore(void)
|
||||
|
||||
window = window_create(NULL, TRUE);
|
||||
window_set_refnum(window, atoi(node->key));
|
||||
window_set_name(window, config_node_get_str(node, "name", NULL));
|
||||
window->sticky_refnum = config_node_get_bool(node, "sticky_refnum", FALSE);
|
||||
window_set_name(window, config_node_get_str(node, "name", NULL));
|
||||
window_set_level(window, level2bits(config_node_get_str(node, "level", "")));
|
||||
|
||||
window->servertag = g_strdup(config_node_get_str(node, "servertag", NULL));
|
||||
@ -144,6 +145,9 @@ static void window_save(WINDOW_REC *window, CONFIG_NODE *node)
|
||||
ltoa(refnum, window->refnum);
|
||||
node = config_node_section(node, refnum, NODE_TYPE_BLOCK);
|
||||
|
||||
if (window->sticky_refnum)
|
||||
iconfig_node_set_bool(node, "sticky_refnum", TRUE);
|
||||
|
||||
if (window->name != NULL)
|
||||
iconfig_node_set_str(node, "name", window->name);
|
||||
if (window->servertag != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user