From 9c94ca0a9b75b370e6a7a6ca65f785235994d382 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 13 Sep 2013 17:40:37 +0530 Subject: [PATCH] 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) --- src/calibre/gui2/actions/choose_library.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/calibre/gui2/actions/choose_library.py b/src/calibre/gui2/actions/choose_library.py index ec158b6718..898dc571ba 100644 --- a/src/calibre/gui2/actions/choose_library.py +++ b/src/calibre/gui2/actions/choose_library.py @@ -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)