1
0
Fork 0
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:
OverloadedOrama 2020-03-11 00:01:12 +02:00
parent 550da1e961
commit 825e06f98a

View file

@ -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