Commit 4ca59820 authored by Claudio Valerio's avatar Claudio Valerio

Check button is hidden depending on the appEnableAutomaticSoftwareUpdate setting. Sankore 123

parent 8dc5066a
......@@ -435,10 +435,12 @@ void UBApplication::decorateActionMenu(QAction* action)
// SANKORE-48: Hide the check update action if the setting
// EnableAutomaticSoftwareUpdates is false in Uniboard.config
if(UBSettings::settings()->appEnableAutomaticSoftwareUpdates->get().toBool())
{
if(UBSettings::settings()->appEnableAutomaticSoftwareUpdates->get().toBool()){
menu->addAction(mainWindow->actionCheckUpdate);
}
else{
mainWindow->actionCheckUpdate->setEnabled(false);
}
#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