Delete dialogs on close
This commit is contained in:
parent
7b44b91b72
commit
21e3478c1b
4 changed files with 8 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue