mirror of
https://github.com/LorenEteval/Furious.git
synced 2026-09-22 23:08:08 +03:00
Refine update management
Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user