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)