mirror of
https://github.com/ankitects/anki.git
synced 2025-12-16 08:10:59 -05:00
Add the previewer_did_init hook (#1882)
This commit is contained in:
parent
6ddbf7bc10
commit
515e77b0f4
2 changed files with 8 additions and 0 deletions
|
|
@ -52,6 +52,7 @@ class Previewer(QDialog):
|
||||||
self.mw = mw
|
self.mw = mw
|
||||||
disable_help_button(self)
|
disable_help_button(self)
|
||||||
setWindowIcon(self)
|
setWindowIcon(self)
|
||||||
|
gui_hooks.previewer_did_init(self)
|
||||||
|
|
||||||
def card(self) -> Card | None:
|
def card(self) -> Card | None:
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
|
||||||
|
|
@ -472,6 +472,13 @@ hooks = [
|
||||||
Every column in the dictionary will be toggleable by the user.
|
Every column in the dictionary will be toggleable by the user.
|
||||||
""",
|
""",
|
||||||
),
|
),
|
||||||
|
# Previewer
|
||||||
|
###################
|
||||||
|
Hook(
|
||||||
|
name="previewer_did_init",
|
||||||
|
args=["previewer: aqt.browser.previewer.Previewer"],
|
||||||
|
doc="""Called after the previewer is initialized.""",
|
||||||
|
),
|
||||||
# Main window states
|
# Main window states
|
||||||
###################
|
###################
|
||||||
# these refer to things like deckbrowser, overview and reviewer state,
|
# these refer to things like deckbrowser, overview and reviewer state,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue