1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

fe-text: clear hidelevel in layout if default

This is required, otherwise setting the hidelevel to the default will
not be written in the layout and so won't persist.
This commit is contained in:
Doug Freed 2018-09-29 07:13:32 -04:00 committed by GitHub
parent cdfd75da98
commit b264540f4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,6 +46,8 @@ static void sig_layout_window_save(WINDOW_REC *window, CONFIG_NODE *node)
char *level = bits2level(gui->view->hidden_level);
iconfig_node_set_str(node, "hidelevel", level);
g_free(level);
} else {
iconfig_node_set_str(node, "hidelevel", NULL);
}
if (gui->use_scroll)