Add no whitelist page

This commit is contained in:
2026-03-22 17:11:03 +01:00
parent 5b7ef4c951
commit 7ecd952f08
8 changed files with 542 additions and 55 deletions

View File

@@ -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