mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
...
This commit is contained in:
parent
f22518cd8c
commit
fd0bb3475e
@ -102,7 +102,7 @@ viewport_to_document = (x, y, doc=window?.document) -> # {{{
|
|||||||
return [x, y]
|
return [x, y]
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
# Equivalent for caretRangeFromPoint for non WebKit browsers {{{
|
# Convert point to character offset {{{
|
||||||
range_has_point = (range, x, y) ->
|
range_has_point = (range, x, y) ->
|
||||||
for rect in range.getClientRects()
|
for rect in range.getClientRects()
|
||||||
if (rect.left <= x <= rect.right) and (rect.top <= y <= rect.bottom)
|
if (rect.left <= x <= rect.right) and (rect.top <= y <= rect.bottom)
|
||||||
|
@ -338,7 +338,7 @@ class Preferences(QMainWindow):
|
|||||||
|
|
||||||
d = warning_dialog(self, _('Restart needed'), msg,
|
d = warning_dialog(self, _('Restart needed'), msg,
|
||||||
show_copy_button=False)
|
show_copy_button=False)
|
||||||
b = d.bb.addButton(_('Restart calibre'), d.bb.AcceptRole)
|
b = d.bb.addButton(_('Restart calibre now'), d.bb.AcceptRole)
|
||||||
b.setIcon(QIcon(I('lt.png')))
|
b.setIcon(QIcon(I('lt.png')))
|
||||||
d.do_restart = False
|
d.do_restart = False
|
||||||
def rf():
|
def rf():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user