From 998a0d6023e4e32d0589ff26213914e805ce8496 Mon Sep 17 00:00:00 2001 From: Nginearing <142851004+Nginearing@users.noreply.github.com> Date: Wed, 27 Nov 2024 23:35:12 +0000 Subject: [PATCH] Import and use macro loading --- tagstudio/src/qt/ts_qt.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tagstudio/src/qt/ts_qt.py b/tagstudio/src/qt/ts_qt.py index bca2089a5..d95d36a67 100644 --- a/tagstudio/src/qt/ts_qt.py +++ b/tagstudio/src/qt/ts_qt.py @@ -93,6 +93,7 @@ from src.qt.modals.folders_to_tags import FoldersToTagsModal from src.qt.modals.drop_import import DropImport from src.qt.modals.ffmpeg_checker import FfmpegChecker +from src.qt.helpers.macro_wrapper import LoadMacros # this import has side-effect of import PySide resources import src.qt.resources_rc # pylint: disable=unused-import @@ -573,6 +574,12 @@ def create_folders_tags_modal(): folders_to_tags_action.triggered.connect(create_folders_tags_modal) macros_menu.addAction(folders_to_tags_action) + try: # Load Macros + logging.info("[MACROS] Loading macros...") + LoadMacros(menu_bar, macros_menu) + except: + logging.error("[MACROS] Failed to load macros") + # Help Menu ============================================================ self.repo_action = QAction("Visit GitHub Repository", menu_bar) self.repo_action.triggered.connect(