continuation of plugin support
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user