1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 01:29:49 +00:00

Fix rare issue where the splash screen never appears and the program is unresponsive

This commit is contained in:
Manolis Papadeas 2022-02-17 15:22:34 +02:00
parent 8b53773d2d
commit 9e7748d2ec

View file

@ -134,9 +134,8 @@ func _show_splash_screen() -> void:
Global.config_cache.set_value("preferences", "startup", true)
if Global.config_cache.get_value("preferences", "startup"):
if OS.get_name() != "HTML5" and OS.window_size != Vector2(1280, 720):
# Wait for the window to adjust itself, so the popup is correctly centered
yield(get_tree(), "screen_resized")
yield(get_tree(), "idle_frame")
$Dialogs/SplashDialog.popup_centered() # Splash screen
modulate = Color(0.5, 0.5, 0.5)