Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 🐛 fixed context actions not working #82

Merged
merged 1 commit into from
Jul 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ class_name FileSystemContextActions
extends Node


onready var mod_tool_store: ModToolStore = get_node_or_null("/root/ModToolStore")
var mod_tool_store: ModToolStore
var base_theme: Theme


func _init(file_system_dock: FileSystemDock, p_base_theme: Theme) -> void:
base_theme = p_base_theme
func _init(_mod_tool_store: ModToolStore, file_system_dock: FileSystemDock, p_base_theme: Theme) -> void:
mod_tool_store = _mod_tool_store
connect_file_system_context_actions(file_system_dock)
base_theme = p_base_theme


func connect_file_system_context_actions(file_system_dock: FileSystemDock) -> void:
Expand Down
1 change: 1 addition & 0 deletions addons/mod_tool/interface/panel/tools_panel.gd
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func set_editor_plugin(plugin: EditorPlugin) -> void:
mod_tool_store.editor_file_system = editor_plugin.get_editor_interface().get_resource_filesystem()

context_actions = FileSystemContextActions.new(
mod_tool_store,
editor_plugin.get_editor_interface().get_file_system_dock(),
editor_plugin.get_editor_interface().get_base_control().theme
)
Expand Down