Python
fix on_tab_select in video mask creator
Chris Malone8f4595f4e4c5
diff --git a/plugins/wan2gp-video-mask-creator/plugin.py b/plugins/wan2gp-video-mask-creator/plugin.pyindex 423f0e8..ec0216d 100644--- a/plugins/wan2gp-video-mask-creator/plugin.py+++ b/plugins/wan2gp-video-mask-creator/plugin.py@@ -1,5 +1,3 @@-# plugins/wan2gp-video-mask-creator/plugin.py-import gradio as grfrom shared.utils.plugins import WAN2GPPluginfrom preprocessing.matanyone import app as matanyone_app@@ -34,11 +32,9 @@ class VideoMaskCreatorPlugin(WAN2GPPlugin):)def create_mask_creator_ui(self):- """Phase 1: Create UI components and store them."""self.mat_components = self.matanyone_app.create_ui_components()def post_ui_setup(self, components: dict):- """Phase 2: Bind all events after the entire UI is constructed."""self.matanyone_app.bind_events(self.mat_components,self.main_tabs,diff --git a/shared/utils/plugins.py b/shared/utils/plugins.pyindex f04fd0d..b74d186 100644--- a/shared/utils/plugins.py+++ b/shared/utils/plugins.py@@ -413,7 +413,7 @@ class WAN2GPApplication:for plugin_id, plugin in loaded_plugins.items():for tab_id, tab in plugin.tabs.items():- self.tab_to_plugin_map[f"plugin_{tab_id}"] = plugin+ self.tab_to_plugin_map[tab.label] = plugintab_info = {'id': tab_id,'label': tab.label,