mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-19 01:29:49 +00:00
Fixed issue where the remove layer button was not disabled when there was only one layer left
This commit is contained in:
parent
550da1e961
commit
825e06f98a
|
@ -534,6 +534,8 @@ func layers_changed(value : Array) -> void:
|
|||
remove_layer_button.mouse_default_cursor_shape = Control.CURSOR_FORBIDDEN
|
||||
|
||||
if layers.size() == 1:
|
||||
remove_layer_button.disabled = true
|
||||
remove_layer_button.mouse_default_cursor_shape = Control.CURSOR_FORBIDDEN
|
||||
move_up_layer_button.disabled = true
|
||||
move_up_layer_button.mouse_default_cursor_shape = Control.CURSOR_FORBIDDEN
|
||||
move_down_layer_button.disabled = true
|
||||
|
|
Loading…
Reference in a new issue