Skip to content

Commit

Permalink
Show drive.displayName in menu, too
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd committed Feb 12, 2025
1 parent dd2f1db commit 47da13c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion menus.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def populate_volumes(window):

drives = QtCore.QStorageInfo.mountedVolumes()
for drive in drives:
drive_action = QtGui.QAction(drive.rootPath(), window)
drive_action = QtGui.QAction(drive.displayName(), window)
drive_action.triggered.connect(lambda checked, d=drive.rootPath(): window.go_drive(d))
drive_action.is_volume = True
window.go_menu.addAction(drive_action)
Expand Down

0 comments on commit 47da13c

Please sign in to comment.