mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 19:34:43 -04:00
Use setter method for layers to update the UI
Instead of updating it in undo and redo methods
This commit is contained in:
parent
2bfae68755
commit
60aed9efba
6 changed files with 96 additions and 51 deletions
|
@ -164,9 +164,8 @@ func _ready() -> void:
|
|||
Global.window_title = "(" + tr("untitled") + ") - Pixelorama"
|
||||
|
||||
Global.layers[0][0] = tr("Layer") + " 0"
|
||||
Global.layers_container.get_child(1).label.text = Global.layers[0][0]
|
||||
Global.layers_container.get_child(1).line_edit.text = Global.layers[0][0]
|
||||
Global.canvas.generate_layer_panels()
|
||||
Global.layers_container.get_child(0).label.text = Global.layers[0][0]
|
||||
Global.layers_container.get_child(0).line_edit.text = Global.layers[0][0]
|
||||
|
||||
Import.import_brushes("Brushes")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue