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:
parent
8b53773d2d
commit
9e7748d2ec
|
@ -134,9 +134,8 @@ func _show_splash_screen() -> void:
|
||||||
Global.config_cache.set_value("preferences", "startup", true)
|
Global.config_cache.set_value("preferences", "startup", true)
|
||||||
|
|
||||||
if Global.config_cache.get_value("preferences", "startup"):
|
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
|
# 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
|
$Dialogs/SplashDialog.popup_centered() # Splash screen
|
||||||
modulate = Color(0.5, 0.5, 0.5)
|
modulate = Color(0.5, 0.5, 0.5)
|
||||||
|
|
Loading…
Reference in a new issue