Add status tips to copy to library actions

This commit is contained in:
Kovid Goyal
2026-04-05 10:01:18 +05:30
parent bd4d9390bc
commit f8df3d90db
+3 -2
View File
@@ -383,9 +383,10 @@ class CopyToLibraryAction(InterfaceAction):
ic = library_qicon(name)
name = name.replace('&', '&&')
self.menu.addAction(ic, name, partial(self.copy_to_library,
loc))
loc)).setStatusTip(_('Copy to: {}').format(loc))
self.menu.addAction(ic, name + ' ' + _('(delete after copy)'),
partial(self.copy_to_library, loc, delete_after=True))
partial(self.copy_to_library, loc, delete_after=True)).setStatusTip(
_('Move to: {}').format(loc))
self.menu.addSeparator()
if len(locations) <= 5:
self.menu.addAction(_('Choose library...'), self.choose_library)