Remove Python TagEdit from Editor view
This commit is contained in:
parent
c48b861596
commit
5505925e64
@ -112,7 +112,6 @@ class Editor:
|
|||||||
self.setupOuter()
|
self.setupOuter()
|
||||||
self.setupWeb()
|
self.setupWeb()
|
||||||
self.setupShortcuts()
|
self.setupShortcuts()
|
||||||
self.setupTags()
|
|
||||||
gui_hooks.editor_did_init(self)
|
gui_hooks.editor_did_init(self)
|
||||||
|
|
||||||
# Initial setup
|
# Initial setup
|
||||||
@ -454,10 +453,8 @@ $editorToolbar.then(({{ toolbar }}) => toolbar.appendGroup({{
|
|||||||
self.currentField = None
|
self.currentField = None
|
||||||
if self.note:
|
if self.note:
|
||||||
self.loadNote(focusTo=focusTo)
|
self.loadNote(focusTo=focusTo)
|
||||||
else:
|
elif hide:
|
||||||
self.hideCompleters()
|
self.widget.hide()
|
||||||
if hide:
|
|
||||||
self.widget.hide()
|
|
||||||
|
|
||||||
def loadNoteKeepingFocus(self) -> None:
|
def loadNoteKeepingFocus(self) -> None:
|
||||||
self.loadNote(self.currentField)
|
self.loadNote(self.currentField)
|
||||||
@ -471,7 +468,6 @@ $editorToolbar.then(({{ toolbar }}) => toolbar.appendGroup({{
|
|||||||
for fld, val in self.note.items()
|
for fld, val in self.note.items()
|
||||||
]
|
]
|
||||||
self.widget.show()
|
self.widget.show()
|
||||||
self.updateTags()
|
|
||||||
|
|
||||||
note_fields_status = self.note.fields_check()
|
note_fields_status = self.note.fields_check()
|
||||||
|
|
||||||
@ -525,7 +521,6 @@ $editorToolbar.then(({{ toolbar }}) => toolbar.appendGroup({{
|
|||||||
# calling code may not expect the callback to fire immediately
|
# calling code may not expect the callback to fire immediately
|
||||||
self.mw.progress.timer(10, callback, False)
|
self.mw.progress.timer(10, callback, False)
|
||||||
return
|
return
|
||||||
self.blur_tags_if_focused()
|
|
||||||
self.web.evalWithCallback("saveNow(%d)" % keepFocus, lambda res: callback())
|
self.web.evalWithCallback("saveNow(%d)" % keepFocus, lambda res: callback())
|
||||||
|
|
||||||
saveNow = call_after_note_saved
|
saveNow = call_after_note_saved
|
||||||
|
Loading…
Reference in New Issue
Block a user