Commit c7492c7c authored by shibakaneki's avatar shibakaneki

Implemented feature SANKORE-48: hide the 'check for updates' action if...

Implemented feature SANKORE-48: hide the 'check for updates' action if EnableAutomaticSoftwareUpdates is false in Uniboard.config
parent e4c8f2d7
......@@ -433,7 +433,13 @@ void UBApplication::decorateActionMenu(QAction* action)
menu->addSeparator();
menu->addAction(mainWindow->actionSankoreEditor);
menu->addAction(mainWindow->actionCheckUpdate);
// 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);
}
#ifndef Q_WS_X11 // No Podcast on Linux yet
menu->addAction(mainWindow->actionPodcast);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment