diff --git a/rare/components/dialogs/launch_dialog.py b/rare/components/dialogs/launch_dialog.py index 6842c851..0d728f37 100644 --- a/rare/components/dialogs/launch_dialog.py +++ b/rare/components/dialogs/launch_dialog.py @@ -2,7 +2,7 @@ import json import os from logging import getLogger -from PyQt5.QtCore import QThread, pyqtSignal, QSettings +from PyQt5.QtCore import QThread, pyqtSignal, QSettings, Qt from PyQt5.QtWidgets import QDialog from requests.exceptions import ConnectionError @@ -97,6 +97,7 @@ class LaunchDialog(QDialog, Ui_LaunchDialog): def __init__(self, core: LegendaryCore, offline): super(LaunchDialog, self).__init__() self.setupUi(self) + self.setAttribute(Qt.WA_DeleteOnClose, True) if os.name == "nt": self.finished = True self.steam_info.setVisible(False) diff --git a/rare/components/dialogs/login/__init__.py b/rare/components/dialogs/login/__init__.py index 2e6b7822..f22e8a15 100644 --- a/rare/components/dialogs/login/__init__.py +++ b/rare/components/dialogs/login/__init__.py @@ -1,3 +1,4 @@ +from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QDialog, QVBoxLayout, QLabel, QStackedLayout, QWidget, QPushButton from custom_legendary.core import LegendaryCore @@ -16,7 +17,7 @@ class LoginDialog(QDialog): self.setWindowTitle("Rare - Login") self.setFixedWidth(350) self.setFixedHeight(450) - + self.setAttribute(Qt.WA_DeleteOnClose, True) self.init_ui() def init_ui(self): diff --git a/rare/components/dialogs/path_input_dialog.py b/rare/components/dialogs/path_input_dialog.py index 44ba05fa..1437b9ef 100644 --- a/rare/components/dialogs/path_input_dialog.py +++ b/rare/components/dialogs/path_input_dialog.py @@ -1,3 +1,4 @@ +from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QHBoxLayout, QPushButton, QVBoxLayout, QLabel, QDialog, QFileDialog from rare.utils.extra_widgets import PathEdit @@ -7,7 +8,7 @@ class PathInputDialog(QDialog): def __init__(self, title_text, text, path="Select Directory"): super().__init__() self.path = "" - + self.setAttribute(Qt.WA_DeleteOnClose, True) self.setWindowTitle(title_text) self.info_label = QLabel(text) self.info_label.setWordWrap(True) diff --git a/rare/components/dialogs/uninstall_dialog.py b/rare/components/dialogs/uninstall_dialog.py index 3a18248d..a0b549e5 100644 --- a/rare/components/dialogs/uninstall_dialog.py +++ b/rare/components/dialogs/uninstall_dialog.py @@ -1,3 +1,4 @@ +from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QDialog, QLabel, QVBoxLayout, QCheckBox, QFormLayout, QHBoxLayout, QPushButton from qtawesome import icon @@ -9,6 +10,7 @@ class UninstallDialog(QDialog): super(UninstallDialog, self).__init__() self.setWindowTitle("Uninstall Game") self.info = 0 + self.setAttribute(Qt.WA_DeleteOnClose, True) self.layout = QVBoxLayout() self.info_text = QLabel(self.tr("Do you really want to uninstall {}").format(game.app_title)) self.layout.addWidget(self.info_text)