X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fglobalsettings.cpp;h=19ce0cd79104cce58878f1ee194fd4ac452f1736;hp=34dbc8326e8acb0f5db01d4c195764af310c73ab;hb=8962d7b3b640b5f07f26a4b4ebee839c4880b69d;hpb=323715c41a09a1aba08f4b716e9d93da58f0f3a8 diff --git a/pv/globalsettings.cpp b/pv/globalsettings.cpp index 34dbc832..19ce0cd7 100644 --- a/pv/globalsettings.cpp +++ b/pv/globalsettings.cpp @@ -44,6 +44,7 @@ const vector< pair > Themes { const QString GlobalSettings::Key_General_Theme = "General_Theme"; const QString GlobalSettings::Key_General_Style = "General_Style"; +const QString GlobalSettings::Key_General_SaveWithSetup = "General_SaveWithSetup"; const QString GlobalSettings::Key_View_ZoomToFitDuringAcq = "View_ZoomToFitDuringAcq"; const QString GlobalSettings::Key_View_ZoomToFitAfterAcq = "View_ZoomToFitAfterAcq"; const QString GlobalSettings::Key_View_TriggerIsZeroTime = "View_TriggerIsZeroTime"; @@ -94,6 +95,10 @@ void GlobalSettings::set_defaults_where_needed() if (!contains(Key_General_Style)) setValue(Key_General_Style, ""); + // Save setup with .sr files by default + if (!contains(Key_General_SaveWithSetup)) + setValue(Key_General_SaveWithSetup, true); + // Enable zoom-to-fit after acquisition by default if (!contains(Key_View_ZoomToFitAfterAcq)) setValue(Key_View_ZoomToFitAfterAcq, true);