Retrait win11toast et compilation agressive via fichier spec
This commit is contained in:
@@ -12,9 +12,6 @@ from PySide6.QtWidgets import QMainWindow, QApplication
|
||||
|
||||
import resources as resources # This is generated from the .qrc file # noqa: F401
|
||||
|
||||
if sys.platform=='windows' or sys.platform=="win32":
|
||||
from win11toast import toast # type: ignore
|
||||
|
||||
if getattr(sys, 'frozen', False) and hasattr(sys, '_MEIPASS'):
|
||||
bundle_dir = Path(sys._MEIPASS)
|
||||
else:
|
||||
@@ -87,11 +84,7 @@ class MainWindow(QMainWindow):
|
||||
|
||||
@staticmethod
|
||||
def connexion_btn_link():
|
||||
buttons = [
|
||||
{'activationType': 'protocol', 'arguments': '', 'content': 'Entrer en jeu'},
|
||||
]
|
||||
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)
|
||||
return None
|
||||
|
||||
if __name__ == "__main__":
|
||||
app = QApplication(sys.argv)
|
||||
|
||||
Reference in New Issue
Block a user