Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit 7b749a2

Browse files
committed
Added option to ignore manager updates
1 parent 95599e8 commit 7b749a2

File tree

3 files changed

+40
-2
lines changed

3 files changed

+40
-2
lines changed

components/statusInfo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def managerUpdateCheck():
1515
if response.status_code == 200:
1616
latest_release = response.json()
1717
tag_name = latest_release["tag_name"]
18-
if int(tag_name.replace(".", "")) > 131:
18+
if int(tag_name.replace(".", "")) > 132:
1919
return True
2020
return False
2121
except:

main.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ def __init__(self):
8787
self.check_autopatch.stateChanged.connect(self.AutoPatchInBackground)
8888
self.check_startonboot.stateChanged.connect(self.startOnBoot)
8989
self.check_neverrestart.stateChanged.connect(self.NeverRestart)
90+
self.check_denymanagerupdate.stateChanged.connect(
91+
self.denyManagerUpdate)
9092

9193
# Execute once window is loaded before listeners are enabled
9294

@@ -97,7 +99,8 @@ def InitWindow(self):
9799
self.background_graphics.setMovie(movie)
98100
self.background_graphics.show()
99101
movie.start()
100-
self.checkUpdateAvailable()
102+
if not readConfig('Manager', 'donotcheckupdate') == 'True':
103+
self.checkUpdateAvailable()
101104

102105
# Display manager window
103106

@@ -322,6 +325,11 @@ def startOnBoot(self):
322325
if reply == QMessageBox.StandardButton.Yes:
323326
os.startfile(folder_path)
324327

328+
# Do not check for manager updates
329+
def denyManagerUpdate(self):
330+
writeConfig('Manager', 'donotcheckupdate', str(
331+
self.check_denymanagerupdate.isChecked()))
332+
325333
# Run custom command button listener
326334
def Custom(self):
327335
self.iprocess = CustomCommand(self.combo_cmd.currentIndex())
@@ -518,6 +526,9 @@ def uiUpdate(self):
518526
else:
519527
self.network_error_icon.setVisible(True)
520528

529+
if (readConfig('Manager', 'donotcheckupdate') == 'True'):
530+
self.check_denymanagerupdate.setChecked(True)
531+
521532
# Check if manager has update available
522533
def checkUpdateAvailable(self):
523534
if (managerUpdateCheck()):

res/manager.ui

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,33 @@ QPushButton:hover
711711
</size>
712712
</property>
713713
</widget>
714+
<widget class="QCheckBox" name="check_denymanagerupdate">
715+
<property name="enabled">
716+
<bool>true</bool>
717+
</property>
718+
<property name="geometry">
719+
<rect>
720+
<x>20</x>
721+
<y>260</y>
722+
<width>571</width>
723+
<height>31</height>
724+
</rect>
725+
</property>
726+
<property name="styleSheet">
727+
<string notr="true">QCheckBox:!enabled{
728+
color: rgba(255, 255, 255, 120);
729+
}</string>
730+
</property>
731+
<property name="text">
732+
<string>Don't check for manager updates</string>
733+
</property>
734+
<property name="iconSize">
735+
<size>
736+
<width>50</width>
737+
<height>50</height>
738+
</size>
739+
</property>
740+
</widget>
714741
</widget>
715742
<widget class="QWidget" name="tab_3">
716743
<attribute name="icon">

0 commit comments

Comments
 (0)