mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Cancel button on edit notes now works
This commit is contained in:
parent
df352ba239
commit
dd3810f6f4
@ -644,8 +644,12 @@ class SelectionBar:
|
|||||||
ed.style.left = x + 'px'
|
ed.style.left = x + 'px'
|
||||||
ed.style.top = y + 'px'
|
ed.style.top = y + 'px'
|
||||||
|
|
||||||
def hide_editor(self, apply):
|
def hide_editor(self, apply_changes):
|
||||||
pass # TODO: Implement this
|
if not apply_changes:
|
||||||
|
self.state = WAITING
|
||||||
|
self.update_position()
|
||||||
|
return
|
||||||
|
# TODO: Implement this
|
||||||
|
|
||||||
def editor_container_clicked(self, ev):
|
def editor_container_clicked(self, ev):
|
||||||
ev.stopPropagation(), ev.preventDefault()
|
ev.stopPropagation(), ev.preventDefault()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user