new tool for quitting app from child windows

This commit is contained in:
2026-03-19 14:22:54 +01:00
parent 720b004eca
commit 945abae5f1
5 changed files with 31 additions and 5 deletions

View File

@@ -12,7 +12,9 @@ from controllers.audio_controller import AudioController
from controllers.glow_animator import GlowAnimator
from controllers.window_dragger import WindowDragger
from discord import discord_oauth
from config.constants import NO_STAFF, Urls
from config.constants import NO_STAFF, Urls, NO_WHITELIST
from ui.custom_message_box import CustomMessageBox
from tools.utils import quit_application
from fake_patch_notes import patch_note
@@ -61,6 +63,18 @@ 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
# ------------------------------------------------------------------