diff libgui/src/main-window.cc @ 18767:f6f1f27026bb gui-release

status bars and code folding a user preference (bug #42306) * settings-dialog.ui: new checkboxes for status bars (main window and editor) and code folding * settings-dialog.cc (constructor): init new checkboxes from settings, (write-changed-settings): write boxes check states into settings * file-editor-tab.cc (constructor): do not set code folding here, (notice-settings): set code folding and show/hide status bar depending on settings * main-window.cc (notice-settings): show/hide status bar depending on settings
author Torsten <ttl@justmail.de>
date Tue, 06 May 2014 20:38:50 +0200
parents f017240310fb
children dff05c124017 bd1fd4ed3d67
line wrap: on
line diff
--- a/libgui/src/main-window.cc	Tue May 06 18:08:15 2014 +0200
+++ b/libgui/src/main-window.cc	Tue May 06 20:38:50 2014 +0200
@@ -682,6 +682,11 @@
   int icon_size = settings->value ("toolbar_icon_size",16).toInt ();
   _main_tool_bar->setIconSize (QSize (icon_size,icon_size));
 
+  if (settings->value ("show_status_bar",true).toBool ())
+    status_bar->show ();
+  else
+    status_bar->hide ();
+
   _prevent_readline_conflicts =
     settings->value ("shortcuts/prevent_readline_conflicts", true).toBool ();
   configure_shortcuts ();