From 13289758b6c3a4745cd0b75c0b6de2d4346e824a Mon Sep 17 00:00:00 2001 From: Yohay Date: Sat, 28 Dec 2024 16:22:03 +0200 Subject: [PATCH] added tagger instance to ScriptsMenu --- picard/ui/scriptsmenu.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/picard/ui/scriptsmenu.py b/picard/ui/scriptsmenu.py index 00addb5eaa..338f05cad1 100644 --- a/picard/ui/scriptsmenu.py +++ b/picard/ui/scriptsmenu.py @@ -23,7 +23,10 @@ from functools import partial -from PyQt6 import QtWidgets +from PyQt6 import ( + QtCore, + QtWidgets, +) from picard import log from picard.album import Album @@ -44,6 +47,7 @@ class ScriptsMenu(QtWidgets.QMenu): def __init__(self, scripts, title, parent=None): super().__init__(title, parent=parent) + self.tagger = QtCore.QCoreApplication.instance() for script in scripts: action = self.addAction(script.name)