fix(ui): don't reload preview after applying macros

This commit is contained in:
Travis Abendshien
2025-08-15 19:05:37 -07:00
parent 835ee6e4f5
commit 3487384bea
+3 -3
View File
@@ -1191,13 +1191,13 @@ class QtDriver(DriverMixin, QObject):
yield 0
def run_macros(self, macro_name: str, entry_ids: list[int]):
"""Run a specific Macro on a group of given entry_ids."""
"""Run a Macro on a list of entires."""
for entry_id in entry_ids:
self.run_macro(macro_name, entry_id)
self.main_window.preview_panel.update_preview()
self.main_window.preview_panel.refresh_selection(update_preview=False)
def run_macro(self, macro_name: str, entry_id: int):
"""Run a specific Macro on an Entry given a Macro name."""
"""Run a Macro on a single entry."""
if not self.lib.library_dir:
logger.error("[QtDriver] Can't run macro when no library is open!")
return