mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Show full path of library in status bar
Show full path of library under mouse in status bar when switching/renaming/deleting libraries via the calibre library button. Fixes #1224925 [[Enhancement]Show full path for libraries](https://bugs.launchpad.net/calibre/+bug/1224925)
This commit is contained in:
parent
cc0d41d2e2
commit
9c94ca0a9b
@ -333,19 +333,23 @@ class ChooseLibraryAction(InterfaceAction):
|
||||
for name, loc in locations:
|
||||
ac = self.quick_menu.addAction(name, Dispatcher(partial(self.switch_requested,
|
||||
loc)))
|
||||
ac.setStatusTip(_('Switch to: %s') % loc)
|
||||
quick_actions.append(ac)
|
||||
ac = self.rename_menu.addAction(name, Dispatcher(partial(self.rename_requested,
|
||||
name, loc)))
|
||||
rename_actions.append(ac)
|
||||
ac.setStatusTip(_('Rename: %s') % loc)
|
||||
ac = self.delete_menu.addAction(name, Dispatcher(partial(self.delete_requested,
|
||||
name, loc)))
|
||||
delete_actions.append(ac)
|
||||
ac.setStatusTip(_('Remove: %s') % loc)
|
||||
|
||||
qs_actions = []
|
||||
for i, x in enumerate(locations[:len(self.switch_actions)]):
|
||||
name, loc = x
|
||||
ac = self.switch_actions[i]
|
||||
ac.setText(name)
|
||||
ac.setStatusTip(_('Switch to: %s') % loc)
|
||||
ac.setVisible(True)
|
||||
qs_actions.append(ac)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user