texstudio/texstudio-disable-update-check.patch

51 lines
2.0 KiB
Diff
Raw Normal View History

2021-01-02 09:50:22 +00:00
From 3d277f1e446343511177893102704da36582158f Mon Sep 17 00:00:00 2001
2015-12-16 19:39:58 +00:00
From: hannes <hannes@fedoraproject.org>
2021-01-02 09:50:22 +00:00
Date: Sat, 2 Jan 2021 10:23:12 +0100
Subject: [PATCH] Update fix
2015-12-16 19:39:58 +00:00
---
2018-02-11 06:54:33 +00:00
src/configdialog.ui | 6 ++++++
src/configmanager.cpp | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
2015-12-16 19:39:58 +00:00
2018-02-11 06:54:33 +00:00
diff --git a/src/configdialog.ui b/src/configdialog.ui
2021-01-02 09:50:22 +00:00
index 88710e9..12b38b0 100644
2018-02-11 06:54:33 +00:00
--- a/src/configdialog.ui
+++ b/src/configdialog.ui
2021-01-02 09:50:22 +00:00
@@ -590,6 +590,9 @@
2015-12-16 19:39:58 +00:00
<property name="value">
2018-02-11 06:54:33 +00:00
<number>7</number>
2021-01-02 09:50:22 +00:00
</property>
+ <property name="readOnly">
+ <bool>true</bool>
+ </property>
2015-12-16 19:39:58 +00:00
</widget>
</item>
<item row="0" column="0">
2021-01-02 09:50:22 +00:00
@@ -597,6 +600,9 @@
2015-12-16 19:39:58 +00:00
<property name="text">
<string>Automatically check every</string>
2021-01-02 09:50:22 +00:00
</property>
+ <property name="checkable">
+ <bool>false</bool>
+ </property>
2015-12-16 19:39:58 +00:00
</widget>
</item>
<item row="0" column="5">
2018-02-11 06:54:33 +00:00
diff --git a/src/configmanager.cpp b/src/configmanager.cpp
2021-01-02 09:50:22 +00:00
index 7e6effc..0193acc 100644
2018-02-11 06:54:33 +00:00
--- a/src/configmanager.cpp
+++ b/src/configmanager.cpp
2021-01-02 09:50:22 +00:00
@@ -489,7 +489,7 @@ ConfigManager::ConfigManager(QObject *parent): QObject (parent),
2018-11-26 19:14:23 +00:00
registerOption("Macros/RepositoryURL", &URLmacroRepository, "https://api.github.com/repos/texstudio-org/texstudio-macro/contents/", nullptr);
2015-12-16 19:39:58 +00:00
//updates
- registerOption("Update/AutoCheck", &autoUpdateCheck, true, &pseudoDialog->checkBoxAutoUpdateCheck);
+ registerOption("Update/AutoCheck", &autoUpdateCheck, false, &pseudoDialog->checkBoxAutoUpdateCheck);
registerOption("Update/UpdateLevel", &updateLevel, 0, &pseudoDialog->comboBoxUpdateLevel);
registerOption("Update/AutoCheckInvervalDays", &autoUpdateCheckIntervalDays, 7, &pseudoDialog->spinBoxAutoUpdateCheckIntervalDays);
registerOption("Update/LastCheck", &lastUpdateCheck, QDateTime());
2021-01-02 09:50:22 +00:00
--
2.29.2
2015-12-16 19:39:58 +00:00