summaryrefslogtreecommitdiff
path: root/plugins/base_plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/base_plugin.py')
-rw-r--r--plugins/base_plugin.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/base_plugin.py b/plugins/base_plugin.py
index 0eeb25f..2dbb56d 100644
--- a/plugins/base_plugin.py
+++ b/plugins/base_plugin.py
@@ -59,6 +59,9 @@ class PluginAction:
icon: str = ""
tooltip: str = ""
checkable: bool = False
+ # Optional: main window calls this with the QPushButton after creation.
+ # Lets the plugin store a reference to uncheck it when its window closes.
+ button_ref_callback: Optional[Callable] = None
# ── Base class ────────────────────────────────────────────────────────────────