fix #78
This commit is contained in:
parent
e64501cdb7
commit
bd6c0b3d2d
@ -191,6 +191,8 @@ def context_menu():
|
||||
"""
|
||||
add context menu to webview
|
||||
"""
|
||||
if not isinstance(web_view.editor.currentField, int):
|
||||
return
|
||||
current_model_id = web_view.editor.note.model()['id']
|
||||
conf = config.get_maps(current_model_id)
|
||||
maps_list = conf if isinstance(conf, list) else conf['list']
|
||||
|
||||
@ -191,6 +191,8 @@ def context_menu():
|
||||
"""
|
||||
add context menu to webview
|
||||
"""
|
||||
if not isinstance(web_view.editor.currentField, int):
|
||||
return
|
||||
current_model_id = web_view.editor.note.model()['id']
|
||||
conf = config.get_maps(current_model_id)
|
||||
maps_list = conf if isinstance(conf, list) else conf['list']
|
||||
|
||||
Loading…
Reference in New Issue
Block a user