mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 09:04:40 +01:00
Cancel button on edit notes now works
This commit is contained in:
parent
df352ba239
commit
dd3810f6f4
1 changed files with 6 additions and 2 deletions
|
|
@ -644,8 +644,12 @@ def place_editor(self):
|
|||
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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue