1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

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

@ -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.

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")