Add no whitelist page
This commit is contained in:
@@ -35,6 +35,21 @@ class MainWindow(QMainWindow):
|
||||
self.setWindowFlags(Qt.WindowType.FramelessWindowHint | Qt.WindowType.Window)
|
||||
self.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground)
|
||||
|
||||
self.ui.stackedWidget.setCurrentIndex(0)
|
||||
|
||||
if NO_WHITELIST:
|
||||
self.ui.stackedWidget.setCurrentIndex(2)
|
||||
# msg = CustomMessageBox(
|
||||
# title="La Tanière: Non whitelisté",
|
||||
# message="\n\nTu n'est pas whitelisté sur le serveur\n\n"
|
||||
# "Assure-toi de te faire whitelister.\n\n"
|
||||
# "Lorsque cela sera fait, relance le launcher.",
|
||||
# icon_type=CustomMessageBox.WARNING,
|
||||
# buttons=CustomMessageBox.OK
|
||||
# )
|
||||
# msg.exec()
|
||||
# quit_application()
|
||||
|
||||
# Test bouton en contruction
|
||||
en_chantier = True
|
||||
if en_chantier:
|
||||
@@ -87,17 +102,6 @@ class MainWindow(QMainWindow):
|
||||
self._center_window()
|
||||
self.show()
|
||||
|
||||
if NO_WHITELIST:
|
||||
msg = CustomMessageBox(
|
||||
title="La Tanière: Non whitelisté",
|
||||
message="\n\nTu n'est pas whitelisté sur le serveur\n\n"
|
||||
"Assure-toi de te faire whitelister.\n\n"
|
||||
"Lorsque cela sera fait, relance le launcher.",
|
||||
icon_type=CustomMessageBox.WARNING,
|
||||
buttons=CustomMessageBox.OK
|
||||
)
|
||||
msg.exec()
|
||||
quit_application()
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
# Setup
|
||||
|
||||
Reference in New Issue
Block a user