Example #1
0
 def oncallback(arg):
     if not self.note:
         return
     self.setupForegroundButton()
     self.checkValid()
     if focusTo is not None:
         self.web.setFocus()
     gui_hooks.editor_did_load_note(self)
Example #2
0
 def oncallback(arg: Any) -> None:
     if not self.note:
         return
     self.setupForegroundButton()
     # we currently do this synchronously to ensure we load before the
     # sidebar on browser startup
     self._update_duplicate_display(note_fields_status)
     if focusTo is not None:
         self.web.setFocus()
     gui_hooks.editor_did_load_note(self)
Example #3
0
 def oncallback(arg):
     if not self.note:
         return
     self.setupForegroundButton()
     self.checkValid()
     if focusTo is not None:
         self.web.setFocus()
     try:
         from aqt import gui_hooks
         gui_hooks.editor_did_load_note(self)
     except:
         runHook("loadNote", self)