Add option to disable feature for checking for a new update

(cherry picked from commit d26dd55dba066aa4884b00b55173597f49309f0d)
This commit is contained in:
Yuriy Puchkov
2021-01-31 11:47:03 +02:00
parent de3b0385d5
commit 540e407eb7
7 changed files with 62 additions and 1 deletions

View File

@@ -309,6 +309,20 @@ void ConfigHandler::setKeepOpenAppLauncher(const bool keepOpen)
m_settings.setValue(QStringLiteral("keepOpenAppLauncher"), keepOpen);
}
bool ConfigHandler::checkForUpdates()
{
bool res = true;
if (m_settings.contains(QStringLiteral("checkForUpdates"))) {
res = m_settings.value(QStringLiteral("checkForUpdates")).toBool();
}
return res;
}
void ConfigHandler::setCheckForUpdates(const bool checkForUpdates)
{
m_settings.setValue(QStringLiteral("checkForUpdates"), checkForUpdates);
}
bool ConfigHandler::startupLaunchValue()
{
#if (defined(Q_OS_MAC) || defined(Q_OS_MAC64) || defined(Q_OS_MACOS) || \

View File

@@ -70,6 +70,9 @@ public:
bool keepOpenAppLauncherValue();
void setKeepOpenAppLauncher(const bool);
bool checkForUpdates();
void setCheckForUpdates(const bool);
bool verifyLaunchFile();
bool startupLaunchValue();
void setStartupLaunch(const bool);