mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-12-17 03:24:43 -05: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
|
|
@ -18,7 +18,7 @@ func _ready() -> void:
|
|||
setup_image_menu()
|
||||
setup_help_menu()
|
||||
|
||||
Global.window_title = "(" + tr("untitled") + ") - Pixelorama " + Global.current_version
|
||||
Global.window_title = tr("untitled") + " - Pixelorama " + Global.current_version
|
||||
|
||||
Global.current_project.layers[0].name = tr("Layer") + " 0"
|
||||
Global.layers_container.get_child(0).label.text = Global.current_project.layers[0].name
|
||||
|
|
@ -225,9 +225,7 @@ func handle_loading_files(files : PoolStringArray) -> void:
|
|||
if file.get_extension().to_lower() == "pxo":
|
||||
_on_OpenSprite_file_selected(file)
|
||||
else:
|
||||
$ImportSprites.new_frame = false
|
||||
$ImportSprites._on_ImportSprites_files_selected([file])
|
||||
$ImportSprites.new_frame = true
|
||||
|
||||
|
||||
func _notification(what : int) -> void:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue