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:
|
for name, loc in locations:
|
||||||
ac = self.quick_menu.addAction(name, Dispatcher(partial(self.switch_requested,
|
ac = self.quick_menu.addAction(name, Dispatcher(partial(self.switch_requested,
|
||||||
loc)))
|
loc)))
|
||||||
|
ac.setStatusTip(_('Switch to: %s') % loc)
|
||||||
quick_actions.append(ac)
|
quick_actions.append(ac)
|
||||||
ac = self.rename_menu.addAction(name, Dispatcher(partial(self.rename_requested,
|
ac = self.rename_menu.addAction(name, Dispatcher(partial(self.rename_requested,
|
||||||
name, loc)))
|
name, loc)))
|
||||||
rename_actions.append(ac)
|
rename_actions.append(ac)
|
||||||
|
ac.setStatusTip(_('Rename: %s') % loc)
|
||||||
ac = self.delete_menu.addAction(name, Dispatcher(partial(self.delete_requested,
|
ac = self.delete_menu.addAction(name, Dispatcher(partial(self.delete_requested,
|
||||||
name, loc)))
|
name, loc)))
|
||||||
delete_actions.append(ac)
|
delete_actions.append(ac)
|
||||||
|
ac.setStatusTip(_('Remove: %s') % loc)
|
||||||
|
|
||||||
qs_actions = []
|
qs_actions = []
|
||||||
for i, x in enumerate(locations[:len(self.switch_actions)]):
|
for i, x in enumerate(locations[:len(self.switch_actions)]):
|
||||||
name, loc = x
|
name, loc = x
|
||||||
ac = self.switch_actions[i]
|
ac = self.switch_actions[i]
|
||||||
ac.setText(name)
|
ac.setText(name)
|
||||||
|
ac.setStatusTip(_('Switch to: %s') % loc)
|
||||||
ac.setVisible(True)
|
ac.setVisible(True)
|
||||||
qs_actions.append(ac)
|
qs_actions.append(ac)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user