diff --git a/qt/aqt/filtered_deck.py b/qt/aqt/filtered_deck.py index 658fcfe87..d5d921b80 100644 --- a/qt/aqt/filtered_deck.py +++ b/qt/aqt/filtered_deck.py @@ -303,7 +303,9 @@ class FilteredDeckConfigDialog(QDialog): return def success(out: OpChangesWithID) -> None: - gui_hooks.filtered_deck_dialog_did_add_or_update_deck(self, self.deck) + gui_hooks.filtered_deck_dialog_did_add_or_update_deck( + self, self.deck, out.id + ) saveGeom(self, self.GEOMETRY_KEY) aqt.dialogs.markClosed(self.DIALOG_KEY) QDialog.accept(self) diff --git a/qt/tools/genhooks_gui.py b/qt/tools/genhooks_gui.py index 36d0ca47c..cd9b540df 100644 --- a/qt/tools/genhooks_gui.py +++ b/qt/tools/genhooks_gui.py @@ -307,6 +307,7 @@ hooks = [ args=[ "filtered_deck_dialog: aqt.filtered_deck.FilteredDeckConfigDialog", "filtered_deck: anki.scheduler.FilteredDeckForUpdate", + "deck_id: int", ], doc="Allows performing changes after a filtered deck has been added or updated", ),