Refine update management

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2025-06-17 19:12:08 +08:00
parent 27f4c6c5f9
commit 885cca477a
+9 -9
View File
@@ -72,6 +72,15 @@ class UpdatesManager(WebGETManager):
super().__init__(parent, actionMessage=actionMessage)
@staticmethod
def showErrorMessageBox(parent=None):
mbox = AppQMessageBox(parent=parent, icon=AppQMessageBox.Icon.Critical)
mbox.setWindowTitle(_(APPLICATION_NAME))
mbox.setText(_('Check for updates failed'))
# Show the MessageBox asynchronously
mbox.open()
def successCallback(self, networkReply, **kwargs):
parent = kwargs.pop('parent', None)
showMessageBox = kwargs.pop('showMessageBox', True)
@@ -132,15 +141,6 @@ class UpdatesManager(WebGETManager):
# Show the MessageBox asynchronously
mbox.open()
@staticmethod
def showErrorMessageBox(parent=None):
mbox = AppQMessageBox(parent=parent, icon=AppQMessageBox.Icon.Critical)
mbox.setWindowTitle(_(APPLICATION_NAME))
mbox.setText(_('Check for updates failed'))
# Show the MessageBox asynchronously
mbox.open()
def failureCallback(self, networkReply, **kwargs):
showMessageBox = kwargs.pop('showMessageBox', True)