Implemented feature SANKORE-48: hide the 'check for updates' action if EnableAutomaticSoftwareUpdates is false in Uniboard.config

preferencesAboutTextFull
shibakaneki 14 years ago
parent e4c8f2d7e5
commit c7492c7c38
  1. 6
      src/core/UBApplication.cpp

@ -433,7 +433,13 @@ void UBApplication::decorateActionMenu(QAction* action)
menu->addSeparator(); menu->addSeparator();
menu->addAction(mainWindow->actionSankoreEditor); menu->addAction(mainWindow->actionSankoreEditor);
// SANKORE-48: Hide the check update action if the setting
// EnableAutomaticSoftwareUpdates is false in Uniboard.config
if(UBSettings::settings()->appEnableAutomaticSoftwareUpdates->get().toBool())
{
menu->addAction(mainWindow->actionCheckUpdate); menu->addAction(mainWindow->actionCheckUpdate);
}
#ifndef Q_WS_X11 // No Podcast on Linux yet #ifndef Q_WS_X11 // No Podcast on Linux yet
menu->addAction(mainWindow->actionPodcast); menu->addAction(mainWindow->actionPodcast);

Loading…
Cancel
Save