From 8e7242937e3f88c5522d9e8876552b165b75af99 Mon Sep 17 00:00:00 2001 From: Xarkam Date: Thu, 5 Mar 2026 14:31:19 +0100 Subject: [PATCH] fix window platform --- src/mainwindow.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mainwindow.py b/src/mainwindow.py index 4282a83..9bafbf3 100644 --- a/src/mainwindow.py +++ b/src/mainwindow.py @@ -15,7 +15,7 @@ import resources as resources # This is generated from the .qrc file # noqa: if sys.platform.startswith('linux'): os.environ["QT_QPA_PLATFORM"] = "xcb" -if sys.platform=='windows': +if sys.platform=='windows' or sys.platform=="win32": from win11toast import toast, notify # Remove this into final release @@ -104,10 +104,9 @@ class MainWindow(QMainWindow): buttons = [ {'activationType': 'protocol', 'arguments': '', 'content': 'Entrer en jeu'}, ] - if sys.platform=='windows': + if sys.platform=='windows' or sys.platform=="win32": toast('C\'est enfin à ton tour d\'entrer en jeu! 🎮🐍', app_id='LaTanière Launcher',buttons=buttons) - if __name__ == "__main__": app = QApplication(sys.argv)