mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
prevent hiding of shortcuts in browser context menu
This commit is contained in:
parent
4acce5f96b
commit
6609dfda7b
1 changed files with 6 additions and 0 deletions
|
@ -473,9 +473,13 @@ class Browser(QMainWindow):
|
|||
m = QMenu()
|
||||
for act in self.form.menu_Cards.actions():
|
||||
m.addAction(act)
|
||||
if qtminor >= 10:
|
||||
act.setShortcutVisibleInContextMenu(True)
|
||||
m.addSeparator()
|
||||
for act in self.form.menu_Notes.actions():
|
||||
m.addAction(act)
|
||||
if qtminor >= 10:
|
||||
act.setShortcutVisibleInContextMenu(True)
|
||||
runHook("browser.onContextMenu", self, m)
|
||||
m.exec_(QCursor.pos())
|
||||
|
||||
|
@ -1574,6 +1578,8 @@ update cards set usn=?, mod=?, did=? where id in """ + scids,
|
|||
|
||||
for c, act in enumerate(flagActions):
|
||||
act.setChecked(flag == c+1)
|
||||
if qtminor >= 10:
|
||||
act.setShortcutVisibleInContextMenu(True)
|
||||
|
||||
def onMark(self, mark=None):
|
||||
if mark is None:
|
||||
|
|
Loading…
Reference in a new issue