Custome message box, secure code, discord, config

This commit is contained in:
2026-03-17 11:06:09 +01:00
parent de8486662e
commit 484809356f
6 changed files with 233 additions and 18 deletions

View File

@@ -8,10 +8,10 @@ from PySide6.QtUiTools import QUiLoader
from PySide6.QtWidgets import QMainWindow, QSizePolicy
from config.config_manager import ConfigManager
from tools.constants import NO_DISCORD, NO_STAFF, Urls
from controllers.audio_controller import AudioController
from controllers.glow_animator import GlowAnimator
from controllers.window_dragger import WindowDragger
from tools.constants import NO_DISCORD, NO_STAFF, Urls
from fake_patch_notes import patch_note
# For Linux Wayland to authorize moving window
@@ -19,10 +19,10 @@ if platform.startswith('linux'):
environ["QT_QPA_PLATFORM"] = "xcb"
class MainWindow(QMainWindow):
def __init__(self, bundle_dir):
def __init__(self, bundle_dir: str, config_manager: ConfigManager):
super().__init__()
self.config = ConfigManager()
self.config = config_manager
# UI
self.ui = QUiLoader().load(f"{bundle_dir}/ui/mainwindow_vertical_pager.ui", self)