fix splash screen

This commit is contained in:
Louis Mazin 2025-09-16 19:16:33 +02:00
parent 26758fb52e
commit 3dc26d2b92

View File

@ -31,14 +31,13 @@ def main() -> int:
# Connecter le signal finished pour afficher la fenêtre principale et vérifier les mises à jour # Connecter le signal finished pour afficher la fenêtre principale et vérifier les mises à jour
def show_main_window(): def show_main_window():
splash.close()
if update_manager.check_for_update(): if update_manager.check_for_update():
return 0 return 0
window.show() window.show()
splash.finished.connect(show_main_window) splash.finished.connect(show_main_window)
else: else:
# Pas de splash screen, afficher directement la fenêtre principale et vérifier les mises à jour # Pas de splash screen, vérifier les mises à jour puis afficher la fenêtre principale
if update_manager.check_for_update(): if update_manager.check_for_update():
return 0 return 0
window.show() window.show()