1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-20 12:33:14 +00:00

Properly center the splash screen on application start

This commit is contained in:
Manolis Papadeas 2022-04-10 15:41:07 +03:00
parent d8830d7f06
commit b0e4636c66

View file

@ -157,6 +157,7 @@ func _show_splash_screen() -> void:
if Global.config_cache.get_value("preferences", "startup"):
# Wait for the window to adjust itself, so the popup is correctly centered
yield(get_tree(), "idle_frame")
yield(get_tree(), "idle_frame")
$Dialogs/SplashDialog.popup_centered() # Splash screen
modulate = Color(0.5, 0.5, 0.5)