mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 21:34:43 -04:00
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:
parent
6d87901056
commit
9ffce37c0b
5 changed files with 22 additions and 6 deletions
|
@ -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..."))
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue