Skip to content

Commit

Permalink
Import and use macro loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Nginearing authored Nov 27, 2024
1 parent 1406459 commit 998a0d6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tagstudio/src/qt/ts_qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check failure on line 96 in tagstudio/src/qt/ts_qt.py

View workflow job for this annotation

GitHub Actions / mypy

[mypy] tagstudio/src/qt/ts_qt.py#L96

Cannot find implementation or library stub for module named "src.qt.helpers.macro_wrapper" [import-not-found]
Raw output
/home/runner/work/TagStudioTesting/TagStudioTesting/tagstudio/src/qt/ts_qt.py:96:1: error: Cannot find implementation or library stub for module named "src.qt.helpers.macro_wrapper"  [import-not-found]

# this import has side-effect of import PySide resources
import src.qt.resources_rc # pylint: disable=unused-import
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 998a0d6

Please sign in to comment.