void-packages/srcpkgs/nextcloud-client/patches/check-for-updates-disabled-...

25 lines
928 B
Diff

Set check for updates option as false by default
--- a/src/gui/generalsettings.ui
+++ b/src/gui/generalsettings.ui
@@ -114,7 +114,7 @@
<string>&amp;Automatically check for Updates</string>
</property>
<property name="checked">
- <bool>true</bool>
+ <bool>false</bool>
</property>
</widget>
</item>
--- a/src/libsync/configfile.cpp
+++ b/src/libsync/configfile.cpp
@@ -631,7 +631,7 @@ bool ConfigFile::autoUpdateCheck(const QString &connection) const
if (connection.isEmpty())
con = defaultConnection();
- QVariant fallback = getValue(QLatin1String(autoUpdateCheckC), con, true);
+ QVariant fallback = getValue(QLatin1String(autoUpdateCheckC), con, false);
fallback = getValue(QLatin1String(autoUpdateCheckC), QString(), fallback);
QVariant value = getPolicySetting(QLatin1String(autoUpdateCheckC), fallback);