From cb6279c63bbb98a419f9f72495b8a8232a3e7529 Mon Sep 17 00:00:00 2001 From: Doug Freed Date: Mon, 17 Sep 2018 13:28:46 +0000 Subject: [PATCH] fe-text: add window_default_hidelevel setting Allows specifying the hidelevel that new windows get by default. --- src/fe-text/gui-windows.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fe-text/gui-windows.c b/src/fe-text/gui-windows.c index e7f799c8..0890fe6f 100644 --- a/src/fe-text/gui-windows.c +++ b/src/fe-text/gui-windows.c @@ -53,7 +53,7 @@ static GUI_WINDOW_REC *gui_window_init(WINDOW_REC *window, get_default_indent_func()); textbuffer_view_set_break_wide(gui->view, settings_get_bool("break_wide")); wcwidth_impl = settings_get_choice("wcwidth_implementation"); - textbuffer_view_set_hidden_level(gui->view, MSGLEVEL_HIDDEN); + textbuffer_view_set_hidden_level(gui->view, settings_get_level("window_default_hidelevel")); if (parent->active == window) textbuffer_view_set_window(gui->view, parent->screen_win); return gui; @@ -303,6 +303,7 @@ void gui_windows_init(void) settings_add_bool("lookandfeel", "indent_always", FALSE); settings_add_bool("lookandfeel", "break_wide", FALSE); settings_add_bool("lookandfeel", "scroll", TRUE); + settings_add_level("lookandfeel", "window_default_hidelevel", "HIDDEN"); window_create_override = MAIN_WINDOW_TYPE_NONE;