Restore gui_hooks changes

This commit is contained in:
Glutanimate 2020-02-20 17:05:27 +01:00
parent ba721a1591
commit 075a2792f5

View File

@ -350,7 +350,7 @@ class _CardWillShowFilter:
self._hooks.remove(filter) self._hooks.remove(filter)
raise raise
# legacy support # legacy support
runFilter("prepareQA", text, card, kind) text = runFilter("prepareQA", text, card, kind)
return text return text
@ -668,7 +668,7 @@ class _EditorDidUnfocusFieldFilter:
self._hooks.remove(filter) self._hooks.remove(filter)
raise raise
# legacy support # legacy support
runFilter("editFocusLost", changed, note, current_field_idx) changed = runFilter("editFocusLost", changed, note, current_field_idx)
return changed return changed
@ -747,7 +747,7 @@ class _EditorWillUseFontForFieldFilter:
self._hooks.remove(filter) self._hooks.remove(filter)
raise raise
# legacy support # legacy support
runFilter("mungeEditingFontName", font) font = runFilter("mungeEditingFontName", font)
return font return font
@ -1287,7 +1287,7 @@ class _StyleDidInitFilter:
self._hooks.remove(filter) self._hooks.remove(filter)
raise raise
# legacy support # legacy support
runFilter("setupStyle", style) style = runFilter("setupStyle", style)
return style return style