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:
parent
f0fbca8b5b
commit
0da52326a3
1 changed files with 7 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue