Don't set Global.saved = true, change the window title and show a notification if a .pxo failed to get saved

This commit is contained in:
OverloadedOrama 2020-04-28 01:22:45 +03:00
parent eab57cf327
commit 4b2930fe67
2 changed files with 7 additions and 6 deletions

View file

@ -209,10 +209,10 @@ func save_pxo_file(path : String) -> void:
file.store_8(tag[3]) # Tag "to", the last frame
file.store_line("END_FRAME_TAGS")
if !Global.saved:
Global.saved = true
Global.window_title = current_save_path.get_file() + " - Pixelorama"
Global.notification_label("File saved")
file.close()
if !Global.saved:
Global.saved = true
Global.window_title = current_save_path.get_file() + " - Pixelorama"
Global.notification_label("File saved")