diff --git a/src/Settings/PlanView.SettingsGroup.json b/src/Settings/PlanView.SettingsGroup.json index 0d4f101c7a37a4c875e6999bee1a287fdb733380..c1976604bcd0714dbace10d9f49fba316da345ab 100644 --- a/src/Settings/PlanView.SettingsGroup.json +++ b/src/Settings/PlanView.SettingsGroup.json @@ -1,2 +1,8 @@ [ +{ + "name": "displayPresetsTabFirst", + "shortDescription": "Display the presets tab at start", + "type": "bool", + "defaultValue": false +} ] diff --git a/src/Settings/PlanViewSettings.cc b/src/Settings/PlanViewSettings.cc index ecd85cf157d738c3668cd236e001f5e0ac9ad2b2..4cad6d28c1b971d3e63a03bf30916e8e9d36a52c 100644 --- a/src/Settings/PlanViewSettings.cc +++ b/src/Settings/PlanViewSettings.cc @@ -16,3 +16,5 @@ DECLARE_SETTINGGROUP(PlanView, "PlanView") { qmlRegisterUncreatableType("QGroundControl.SettingsManager", 1, 0, "PlanViewSettings", "Reference only"); \ } + +DECLARE_SETTINGSFACT(PlanViewSettings, displayPresetsTabFirst) diff --git a/src/Settings/PlanViewSettings.h b/src/Settings/PlanViewSettings.h index 3daf03e6e0aedc51f217d9bb2c957d2168260be2..ebea9f27e46df8d7ca99a384a1f61bf97541db79 100644 --- a/src/Settings/PlanViewSettings.h +++ b/src/Settings/PlanViewSettings.h @@ -17,6 +17,8 @@ class PlanViewSettings : public SettingsGroup public: PlanViewSettings(QObject* parent = nullptr); DEFINE_SETTING_NAME_GROUP() - // This is currently only used to set custom build visibility of the Plan view settings ui. - // The settings themselves related to PlanView are in still in AppSettings due to historical reasons. + + // Most individual settings related to PlanView are still in AppSettings due to historical reasons. + + DEFINE_SETTINGFACT(displayPresetsTabFirst) };