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

Quitting now detects if changes have been made in other projects too other than the current

This commit is contained in:
Manolis Papadeas 2022-01-07 03:36:16 +02:00
parent f0fbca8b5b
commit 0da52326a3

View file

@ -438,8 +438,14 @@ func _can_draw_true() -> void:
func show_quit_dialog() -> void:
var changed_project := false
for project in Global.projects:
if project.has_changed:
changed_project = true
break
if !quit_dialog.visible:
if !Global.current_project.has_changed:
if !changed_project:
if Global.quit_confirmation:
quit_dialog.call_deferred("popup_centered")
else: