mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
Disable "New Brush" instead of "Delete" in the Edit menu
Issue caused when "Paste in Place" was added.
This commit is contained in:
parent
1c12bccde7
commit
af7f1f83b1
|
@ -124,7 +124,8 @@ func selection_map_changed() -> void:
|
|||
if has_selection:
|
||||
image_texture.create_from_image(selection_map, 0)
|
||||
Global.canvas.selection.marching_ants_outline.texture = image_texture
|
||||
Global.top_menu_container.edit_menu_button.get_popup().set_item_disabled(6, !has_selection)
|
||||
var edit_menu_popup: PopupMenu = Global.top_menu_container.edit_menu_button.get_popup()
|
||||
edit_menu_popup.set_item_disabled(Global.EditMenu.NEW_BRUSH, !has_selection)
|
||||
|
||||
|
||||
func _selection_offset_changed(value: Vector2) -> void:
|
||||
|
@ -259,7 +260,8 @@ func change_project() -> void:
|
|||
Global.canvas.selection.big_bounding_rectangle = selection_map.get_used_rect()
|
||||
Global.canvas.selection.big_bounding_rectangle.position += selection_offset
|
||||
Global.canvas.selection.update()
|
||||
Global.top_menu_container.edit_menu_button.get_popup().set_item_disabled(6, !has_selection)
|
||||
var edit_menu_popup: PopupMenu = Global.top_menu_container.edit_menu_button.get_popup()
|
||||
edit_menu_popup.set_item_disabled(Global.EditMenu.NEW_BRUSH, !has_selection)
|
||||
|
||||
var i := 0
|
||||
for camera in Global.cameras:
|
||||
|
|
|
@ -105,7 +105,7 @@ func _setup_edit_menu() -> void:
|
|||
edit_menu.add_item(item, i)
|
||||
i += 1
|
||||
|
||||
edit_menu.set_item_disabled(6, true)
|
||||
edit_menu.set_item_disabled(Global.EditMenu.NEW_BRUSH, true)
|
||||
edit_menu.connect("id_pressed", self, "edit_menu_id_pressed")
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue