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

preferencesAboutTextFull
Claudio Valerio 14 years ago
parent 8dc5066abd
commit 4ca5982082
  1. 6
      src/core/UBApplication.cpp

@ -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);

Loading…
Cancel
Save