beginGroup("Settings");
}
+void GlobalSettings::set_defaults_where_needed()
+{
+ // Enable coloured trace backgrounds by default
+ if (!contains(Key_View_ColouredBG))
+ setValue(Key_View_ColouredBG, true);
+}
+
void GlobalSettings::register_change_handler(const QString key,
function<void(QVariant)> cb)
{
public:
GlobalSettings();
+ void set_defaults_where_needed();
+
static void register_change_handler(const QString key,
function<void(QVariant)> cb);
GlobalSettings::register_change_handler(GlobalSettings::Key_View_ShowAnalogMinorGrid,
bind(&MainWindow::on_settingViewShowAnalogMinorGrid_changed, this, _1));
+ GlobalSettings settings;
+ settings.set_defaults_where_needed();
+
setup_ui();
restore_ui_settings();
}