1
0
Fork 0
mirror of synced 2024-06-26 18:20:50 +12:00

InstallDialog: Move worker signals inside worker class

Signed-off-by: loathingKernel <142770+loathingKernel@users.noreply.github.com>
This commit is contained in:
loathingKernel 2022-05-05 15:25:28 +03:00
parent 659c015032
commit 4ec42a1708

View file

@ -304,16 +304,16 @@ class InstallDialog(QDialog, Ui_InstallDialog):
self.cancel_clicked()
class InstallInfoSignals(QObject):
result = pyqtSignal(InstallDownloadModel)
failed = pyqtSignal(str)
finished = pyqtSignal()
class InstallInfoWorker(QRunnable):
class Signals(QObject):
result = pyqtSignal(InstallDownloadModel)
failed = pyqtSignal(str)
finished = pyqtSignal()
def __init__(self, core: LegendaryCore, dl_item: InstallQueueItemModel, game: Game = None):
super(InstallInfoWorker, self).__init__()
self.signals = InstallInfoSignals()
self.signals = InstallInfoWorker.Signals()
self.core = core
self.dl_item = dl_item
self.is_overlay_install = self.dl_item.options.overlay