Skip to content

Commit e2da261

Browse files
committed
Add mnemonics to the Open Recent menu
1 parent e1a9587 commit e2da261

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tagstudio/src/qt/ts_qt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1768,10 +1768,10 @@ def update_recent_lib_menu(self):
17681768
settings.endGroup()
17691769

17701770
# Create actions for each library
1771-
for library_key in libs_sorted:
1771+
for index, library_key in enumerate(libs_sorted):
17721772
path = Path(library_key[1][0])
17731773
action = QAction(self.open_recent_library_menu)
1774-
action.setText(str(path))
1774+
action.setText(f"&{index + 1}: {str(path)}")
17751775
action.triggered.connect(lambda checked=False, p=path: self.open_library(p))
17761776
actions.append(action)
17771777

0 commit comments

Comments
 (0)