void-packages/srcpkgs/texstudio/patches/30-disable-auto-update.patch

27 lines
1.2 KiB
Diff

#initially based on debian's patch: https://sources.debian.net/patches/texstudio/2.11.2+debian-1/
#modification: in Settings menu: disable whole groupBox instead of all single elements
--- src/configdialog.ui
+++ src/configdialog.ui
@@ -485,6 +485,9 @@
</item>
<item>
<widget class="QGroupBox" name="groupBox_Update">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
<property name="title">
<string>Update</string>
</property>
--- src/configmanager.cpp
+++ src/configmanager.cpp
@@ -477,7 +477,7 @@
registerOption("Thesaurus/Database", &thesaurus_database, "<dic not found>", &pseudoDialog->comboBoxThesaurusFileName);
//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());