mirror of
https://github.com/beetbox/beets.git
synced 2025-12-22 08:34:23 +01:00
In beet modify: don't ask for confirmation if there is nothing to do
This commit is contained in:
parent
591bc4f348
commit
1f46ff4604
1 changed files with 10 additions and 5 deletions
|
|
@ -1155,6 +1155,11 @@ def modify_items(lib, mods, query, write, move, album, confirm):
|
|||
if _showdiff(field, obj.get(field), value):
|
||||
changed.add(obj)
|
||||
|
||||
# Still something to do?
|
||||
if not changed:
|
||||
print_('No modification to perform.')
|
||||
return
|
||||
else:
|
||||
# Confirm.
|
||||
if confirm:
|
||||
extra = ' and write tags' if write else ''
|
||||
|
|
|
|||
Loading…
Reference in a new issue