This commit is contained in:
St.Huang 2018-10-21 09:36:01 +08:00
parent e64501cdb7
commit bd6c0b3d2d
2 changed files with 4 additions and 0 deletions

View File

@ -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']

View File

@ -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']