Skip to content

Commit

Permalink
[licenses] Free licenses dialog
Browse files Browse the repository at this point in the history
and call static function correctly
  • Loading branch information
IceflowRE committed Oct 3, 2023
1 parent 0bbed80 commit f943765
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addons/licenses/plugin.gd
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func _get_plugin_name() -> String:
return "Licenses"

func _enter_tree() -> void:
self.set_project_setting(Licenses.DATA_FILE, "res://licenses.json", TYPE_STRING, PROPERTY_HINT_FILE)
set_project_setting(Licenses.DATA_FILE, "res://licenses.json", TYPE_STRING, PROPERTY_HINT_FILE)

self.export_plugin = ExportPlugin.new()
self.add_export_plugin(self.export_plugin)
Expand All @@ -23,6 +23,7 @@ func _enter_tree() -> void:

func _exit_tree() -> void:
self.remove_tool_menu_item(self._get_plugin_name() + "...")
self.licenses_dialog.queue_free()
self.remove_export_plugin(self.export_plugin)

func _show_popup() -> void:
Expand Down

0 comments on commit f943765

Please sign in to comment.