continuation of plugin support

This commit is contained in:
2026-09-01 17:20:16 -07:00
parent ca203fcb56
commit e9ef78c872
3 changed files with 561 additions and 151 deletions
+6 -2
View File
@@ -34,6 +34,7 @@ from PySide6.QtGui import QAction, QActionGroup, QFontMetrics, QKeySequence, QIc
from PySide6.QtSvgWidgets import QSvgWidget # needed to show svgs when app is not frozen
from file_ext_registration import register_file_association, ELEVATION_FLAG
from plugin_manager import PluginManager
from project_manager import ProjectManager
from src.window.about import AboutWindow
from src.window.plugins import PluginsWindow
@@ -579,6 +580,7 @@ class MainApplication(QMainWindow):
self.files_are_dirty = False
self.project_manager = ProjectManager(self, file_cfg=file_cfg, cfg_path=cfg_path)
self.plugin_manager = PluginManager(self)
# Initialization to ensure that saving can occur
for item in DATA_SCHEMA:
@@ -620,7 +622,9 @@ class MainApplication(QMainWindow):
self.local_check_thread.pending_update_found.connect(self.updater.on_pending_update_found)
self.local_check_thread.no_pending_update.connect(self.updater.on_no_pending_update)
self.local_check_thread.start()
self.plugin_manager.reload_plugins()
self.show()
# Check if we should pop up the welcome screen
@@ -1327,7 +1331,7 @@ class MainApplication(QMainWindow):
def plugins_gui(self):
if self.plugins is None or not self.plugins.isVisible():
self.plugins = PluginsWindow(self)
self.plugins = PluginsWindow(self, self.plugin_manager)
self.plugins.show()
def terminal_gui(self):