added an option in configuration file to hide/show the 'check update' action

preferencesAboutTextFull
Clément Fauconnier 7 years ago
parent 859b52b7a4
commit 9e42b0698e
  1. 1
      resources/etc/OpenBoard.config
  2. 1
      src/core/UBApplication.cpp
  3. 1
      src/core/UBSettings.cpp
  4. 1
      src/core/UBSettings.h

@ -1,5 +1,6 @@
[App] [App]
AngleTolerance=4 AngleTolerance=4
HideCheckForSoftwareUpdate=false
EnableAutomaticSoftwareUpdates=true EnableAutomaticSoftwareUpdates=true
EnableSoftwareUpdates=true EnableSoftwareUpdates=true
EnableStartupHints=true EnableStartupHints=true

@ -514,6 +514,7 @@ void UBApplication::decorateActionMenu(QAction* action)
menu->addSeparator(); menu->addSeparator();
menu->addAction(mainWindow->actionPreferences); menu->addAction(mainWindow->actionPreferences);
menu->addAction(mainWindow->actionMultiScreen); menu->addAction(mainWindow->actionMultiScreen);
if (!UBSettings::settings()->appHideCheckForSoftwareUpdate->get().toBool())
menu->addAction(mainWindow->actionCheckUpdate); menu->addAction(mainWindow->actionCheckUpdate);
menu->addSeparator(); menu->addSeparator();

@ -234,6 +234,7 @@ void UBSettings::init()
appToolBarDisplayText = new UBSetting(this, "App", "ToolBarDisplayText", true); appToolBarDisplayText = new UBSetting(this, "App", "ToolBarDisplayText", true);
appEnableAutomaticSoftwareUpdates = new UBSetting(this, "App", "EnableAutomaticSoftwareUpdates", false); appEnableAutomaticSoftwareUpdates = new UBSetting(this, "App", "EnableAutomaticSoftwareUpdates", false);
appSoftwareUpdateURL = new UBSetting(this, "App", "SoftwareUpdateURL", "http://www.openboard.ch/update.json"); appSoftwareUpdateURL = new UBSetting(this, "App", "SoftwareUpdateURL", "http://www.openboard.ch/update.json");
appHideCheckForSoftwareUpdate = new UBSetting(this, "App", "HideCheckForSoftwareUpdate", false);
appToolBarOrientationVertical = new UBSetting(this, "App", "ToolBarOrientationVertical", false); appToolBarOrientationVertical = new UBSetting(this, "App", "ToolBarOrientationVertical", false);
appPreferredLanguage = new UBSetting(this,"App","PreferredLanguage", ""); appPreferredLanguage = new UBSetting(this,"App","PreferredLanguage", "");

@ -250,6 +250,7 @@ class UBSettings : public QObject
UBSetting* appToolBarDisplayText; UBSetting* appToolBarDisplayText;
UBSetting* appEnableAutomaticSoftwareUpdates; UBSetting* appEnableAutomaticSoftwareUpdates;
UBSetting* appSoftwareUpdateURL; UBSetting* appSoftwareUpdateURL;
UBSetting* appHideCheckForSoftwareUpdate;
UBSetting* appToolBarOrientationVertical; UBSetting* appToolBarOrientationVertical;
UBSetting* appPreferredLanguage; UBSetting* appPreferredLanguage;

Loading…
Cancel
Save