mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 19:14:42 -04:00
Add "(*)" to the window title when file is not saved
This commit is contained in:
parent
eab3669eb2
commit
40d1da66c8
2 changed files with 10 additions and 3 deletions
|
@ -543,7 +543,10 @@ func _on_SaveSprite_file_selected(path : String) -> void:
|
|||
file.store_buffer(brush.get_data())
|
||||
file.store_line("END_BRUSHES")
|
||||
file.close()
|
||||
Global.saved = true
|
||||
if !Global.saved:
|
||||
Global.saved = true
|
||||
Global.window_title = Global.window_title.rstrip("(*)")
|
||||
|
||||
Global.notification_label("File saved")
|
||||
|
||||
func clear_canvases() -> void:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue