mirror of
https://github.com/beetbox/beets.git
synced 2026-01-30 20:13:37 +01:00
This commit is contained in:
parent
bdabafeefd
commit
87b022e48c
1 changed files with 2 additions and 2 deletions
|
|
@ -182,7 +182,7 @@ class ImportState:
|
|||
"""
|
||||
return toppath in self.tagprogress
|
||||
|
||||
def progress_reset(self, toppath: PathBytes):
|
||||
def progress_reset(self, toppath: PathBytes | None):
|
||||
"""Reset the progress for `toppath`."""
|
||||
with self as state:
|
||||
if toppath in state.tagprogress:
|
||||
|
|
@ -1161,7 +1161,7 @@ class SentinelImportTask(ImportTask):
|
|||
pass
|
||||
|
||||
def save_progress(self):
|
||||
if self.paths is None and self.toppath:
|
||||
if not self.paths:
|
||||
# "Done" sentinel.
|
||||
ImportState().progress_reset(self.toppath)
|
||||
elif self.toppath:
|
||||
|
|
|
|||
Loading…
Reference in a new issue