Skip to content

Commit

Permalink
[licenses] Create child popups first
Browse files Browse the repository at this point in the history
  • Loading branch information
IceflowRE committed Apr 3, 2024
1 parent 0794b8f commit 15ae714
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions addons/licenses/internal/toolbar.gd
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ func _ready() -> void:
self.add_child(self._menu)

self._add_menu = PopupMenu.new()
self._create_plugin_menu_items()
self._create_engine_menu_items()
self._add_menu.add_item("New Component", 0)
self._add_menu.set_item_icon(0, get_theme_icon(&"New", &"EditorIcons"))
self._add_menu.add_submenu_item("Generate from Plugin", "menu_plugin", 1)
Expand All @@ -37,9 +39,6 @@ func _ready() -> void:
self._add_menu.id_pressed.connect(self._on_add_id_pressed)
self.add_child(self._add_menu)

self._create_plugin_menu_items()
self._create_engine_menu_items()

# get plugin config as dictionary
func _get_plugin_config(path: String) -> Dictionary:
var config: ConfigFile = ConfigFile.new()
Expand Down

0 comments on commit 15ae714

Please sign in to comment.