Cancel button on edit notes now works

This commit is contained in:
Kovid Goyal 2020-08-03 23:26:01 +05:30
parent df352ba239
commit dd3810f6f4
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -644,8 +644,12 @@ class SelectionBar:
ed.style.left = x + 'px'
ed.style.top = y + 'px'
def hide_editor(self, apply):
pass # TODO: Implement this
def hide_editor(self, apply_changes):
if not apply_changes:
self.state = WAITING
self.update_position()
return
# TODO: Implement this
def editor_container_clicked(self, ev):
ev.stopPropagation(), ev.preventDefault()