Don't use global threadpool as it gets deleted when exiting the dialog
Woops...
This commit is contained in:
parent
148cf0ff8e
commit
376d3e0eba
1 changed files with 2 additions and 1 deletions
|
@ -24,7 +24,8 @@ class InstallDialog(QDialog, Ui_InstallDialog):
|
||||||
self.game = self.core.get_game(app_name)
|
self.game = self.core.get_game(app_name)
|
||||||
self.update_game = update
|
self.update_game = update
|
||||||
|
|
||||||
self.threadpool = QThreadPool.globalInstance()
|
self.threadpool = QThreadPool(self)
|
||||||
|
self.threadpool.setMaxThreadCount(1)
|
||||||
|
|
||||||
header = self.tr("Update") if update else self.tr("Install")
|
header = self.tr("Update") if update else self.tr("Install")
|
||||||
self.install_dialog_label.setText(f"<h3>{header} \"{self.game.app_title}\"</h3>")
|
self.install_dialog_label.setText(f"<h3>{header} \"{self.game.app_title}\"</h3>")
|
||||||
|
|
Loading…
Reference in a new issue