mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 21:14:19 +01:00
Revert normpath additions
This commit is contained in:
parent
87b022e48c
commit
cf1b4d8913
1 changed files with 3 additions and 3 deletions
|
|
@ -436,7 +436,7 @@ class ImportSession:
|
|||
|
||||
You have to call `ask_resume` first to determine the return value.
|
||||
"""
|
||||
return self._is_resuming.get(normpath(toppath), False)
|
||||
return self._is_resuming.get(toppath, False)
|
||||
|
||||
def ask_resume(self, toppath: PathBytes):
|
||||
"""If import of `toppath` was aborted in an earlier session, ask
|
||||
|
|
@ -449,9 +449,9 @@ class ImportSession:
|
|||
if self.want_resume is True or self.should_resume(toppath):
|
||||
log.warning(
|
||||
"Resuming interrupted import of {0}",
|
||||
util.displayable_path(normpath(toppath)),
|
||||
util.displayable_path(toppath),
|
||||
)
|
||||
self._is_resuming[normpath(toppath)] = True
|
||||
self._is_resuming[toppath] = True
|
||||
else:
|
||||
# Clear progress; we're starting from the top.
|
||||
ImportState().progress_reset(toppath)
|
||||
|
|
|
|||
Loading…
Reference in a new issue