From 885cca477ab1e56495d33ade29bb5732ba32c730 Mon Sep 17 00:00:00 2001 From: Loren Eteval Date: Tue, 17 Jun 2025 19:12:08 +0800 Subject: [PATCH] Refine update management Signed-off-by: Loren Eteval --- Furious/QtFramework/UpdatesManager.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Furious/QtFramework/UpdatesManager.py b/Furious/QtFramework/UpdatesManager.py index fdbac7f..2dc7b17 100644 --- a/Furious/QtFramework/UpdatesManager.py +++ b/Furious/QtFramework/UpdatesManager.py @@ -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)