Restore gui_hooks changes
This commit is contained in:
parent
ba721a1591
commit
075a2792f5
@ -350,7 +350,7 @@ class _CardWillShowFilter:
|
||||
self._hooks.remove(filter)
|
||||
raise
|
||||
# legacy support
|
||||
runFilter("prepareQA", text, card, kind)
|
||||
text = runFilter("prepareQA", text, card, kind)
|
||||
return text
|
||||
|
||||
|
||||
@ -668,7 +668,7 @@ class _EditorDidUnfocusFieldFilter:
|
||||
self._hooks.remove(filter)
|
||||
raise
|
||||
# legacy support
|
||||
runFilter("editFocusLost", changed, note, current_field_idx)
|
||||
changed = runFilter("editFocusLost", changed, note, current_field_idx)
|
||||
return changed
|
||||
|
||||
|
||||
@ -747,7 +747,7 @@ class _EditorWillUseFontForFieldFilter:
|
||||
self._hooks.remove(filter)
|
||||
raise
|
||||
# legacy support
|
||||
runFilter("mungeEditingFontName", font)
|
||||
font = runFilter("mungeEditingFontName", font)
|
||||
return font
|
||||
|
||||
|
||||
@ -1287,7 +1287,7 @@ class _StyleDidInitFilter:
|
||||
self._hooks.remove(filter)
|
||||
raise
|
||||
# legacy support
|
||||
runFilter("setupStyle", style)
|
||||
style = runFilter("setupStyle", style)
|
||||
return style
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user