Also set this as event for title_action to match action

This commit is contained in:
Kovid Goyal 2021-02-05 12:09:01 +05:30
parent 92d9c9055d
commit abbed6e40c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -78,7 +78,10 @@ def set_left_data(container, title='calibre', icon='heart', action=None, tooltip
if callable(title_action):
a = a.nextSibling
a.addEventListener('click', def(event): event.preventDefault(), title_action();)
a.addEventListener('click', def(event):
event.preventDefault()
title_action.bind(event)()
)
def set_title(container, text):
bars = get_bars(container)