mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05:00
Layout save support for immortality..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2423 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
9bb16705a5
commit
57629dcadc
@ -117,6 +117,7 @@ static void sig_layout_restore(void)
|
||||
|
||||
window_set_refnum(window, atoi(node->key));
|
||||
window->sticky_refnum = config_node_get_bool(node, "sticky_refnum", FALSE);
|
||||
window->immortal = config_node_get_bool(node, "immortal", FALSE);
|
||||
window_set_name(window, config_node_get_str(node, "name", NULL));
|
||||
window_set_history(window, config_node_get_str(node, "history_name", NULL));
|
||||
window_set_level(window, level2bits(config_node_get_str(node, "level", "")));
|
||||
@ -171,6 +172,9 @@ static void window_save(WINDOW_REC *window, CONFIG_NODE *node)
|
||||
if (window->sticky_refnum)
|
||||
iconfig_node_set_bool(node, "sticky_refnum", TRUE);
|
||||
|
||||
if (window->immortal)
|
||||
iconfig_node_set_bool(node, "immortal", TRUE);
|
||||
|
||||
if (window->name != NULL)
|
||||
iconfig_node_set_str(node, "name", window->name);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user