From 4b2930fe670a758f047c885e70d59e96f495836e Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Tue, 28 Apr 2020 01:22:45 +0300 Subject: [PATCH] Don't set Global.saved = true, change the window title and show a notification if a .pxo failed to get saved --- Changelog.md | 3 ++- Scripts/OpenSave.gd | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Changelog.md b/Changelog.md index bb224dab1..6e3aa6a1c 100644 --- a/Changelog.md +++ b/Changelog.md @@ -6,7 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [v0.7] - Unreleased This update has been brought to you by the contributions of: -Martin Novák (novhack), Darshan Phaldesai (luiq54), Schweini07, Marco Galli (Gaarco), Matheus Pesegoginski (MatheusPese), sapient-cogbag, Kinwailo, Igor Santarek (jegor377) +Martin Novák (novhack), Darshan Phaldesai (luiq54), Schweini07, Marco Galli (Gaarco), Matheus Pesegoginski (MatheusPese), +sapient-cogbag, Kinwailo, Igor Santarek (jegor377), Dávid Gábor BODOR (dragonfi) ### Added - Cels are now in the timeline. Each cel refers to a specific layer AND a frame. Frames are a collection of cels for every layer. diff --git a/Scripts/OpenSave.gd b/Scripts/OpenSave.gd index 5ef87e045..af14c0efc 100644 --- a/Scripts/OpenSave.gd +++ b/Scripts/OpenSave.gd @@ -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")