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
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

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)