Add "(*)" to the window title when file is not saved

This commit is contained in:
OverloadedOrama 2020-02-22 17:32:16 +02:00
parent eab3669eb2
commit 40d1da66c8
2 changed files with 10 additions and 3 deletions

View file

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