An asterisk is added to the tab name if there are changes

The window title also changes when switching tabs. And yes, "has_changed_changed" is a stupid method name, I'll find another one sometime later.
This commit is contained in:
OverloadedOrama 2020-06-05 20:15:40 +03:00
parent 6d87901056
commit 9ffce37c0b
5 changed files with 22 additions and 6 deletions

View file

@ -472,7 +472,7 @@ func clear_frames() -> void:
play_forward.pressed = false
animation_timer.stop()
self.window_title = "(" + tr("untitled") + ") - Pixelorama " + Global.current_version
self.window_title = tr("untitled") + " - Pixelorama " + Global.current_version
OpenSave.current_save_path = ""
control.get_node("ExportDialog").was_exported = false
control.file_menu.set_item_text(3, tr("Save..."))

View file

@ -277,6 +277,7 @@ func save_pxo_file(path : String, autosave : bool) -> void:
Global.notification_label("File saved")
if backup_save_path == "":
Global.current_project.name = path.get_file()
Global.window_title = path.get_file() + " - Pixelorama " + Global.current_version
else: