logic: Moved update check setting to preferences and enable automatic update check by default
This commit is contained in:
@@ -419,7 +419,7 @@ void ApplicationSettings::setUserToken(std::string token)
|
||||
|
||||
bool ApplicationSettings::getAutomaticUpdateCheck() const
|
||||
{
|
||||
return getValue<bool>("user/update_check/automatic", false);
|
||||
return getValue<bool>("user/update_check/automatic", true);
|
||||
}
|
||||
|
||||
void ApplicationSettings::setAutomaticUpdateCheck(bool automaticUpdates)
|
||||
@@ -450,6 +450,16 @@ void ApplicationSettings::setSkipUpdateForVersion(const Version& version)
|
||||
}
|
||||
}
|
||||
|
||||
std::string ApplicationSettings::getUpdateDownloadUrl() const
|
||||
{
|
||||
return getValue<std::string>("user/update_check/url", "");
|
||||
}
|
||||
|
||||
void ApplicationSettings::setUpdateDownloadUrl(const std::string& url)
|
||||
{
|
||||
setValue<std::string>("user/update_check/url", url);
|
||||
}
|
||||
|
||||
int ApplicationSettings::getPluginPort() const
|
||||
{
|
||||
return getValue<int>("network/plugin_port", 6666);
|
||||
|
||||
@@ -132,6 +132,9 @@ public:
|
||||
Version getSkipUpdateForVersion() const;
|
||||
void setSkipUpdateForVersion(const Version& version);
|
||||
|
||||
std::string getUpdateDownloadUrl() const;
|
||||
void setUpdateDownloadUrl(const std::string& url);
|
||||
|
||||
// network
|
||||
int getPluginPort() const;
|
||||
void setPluginPort(const int pluginPort);
|
||||
|
||||
Reference in New Issue
Block a user