Skip to content

Commit

Permalink
fix log in case of name already good and verbose output
Browse files Browse the repository at this point in the history
  • Loading branch information
i30817 committed Sep 11, 2022
1 parent 9589987 commit 92f07b5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions rhdndat/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,12 +555,10 @@ def track_constructor(st):
possibilities.append(questionary.Choice(question, value=(name,x), disabled=True))
#no game was added (or some were skipped because the dat was broken),
#without even any track renames to be done, skip
if len(possibilities) == 1:
if all((x.disabled for x in possibilities[1:])):
if verbose and current_rom_was_in_dats:
log(f'log: {link(rom.parent.as_uri(),rom.name + " (open dir)")} appears to have the correct name')
continue
elif all((x.disabled for x in possibilities[1:])):
if verbose:
elif verbose:
log(f'log: {link(rom.parent.as_uri(),rom.name + " (open dir)")} any possible name already exists in the dir')
continue
choice = questionary.select(f'rename {"(hack?) " if "(" not in rom.name else ""}{rom.name} ?',
Expand Down

0 comments on commit 92f07b5

Please sign in to comment.