Fix regression: sync dialog not showing up when it should

This commit is contained in:
croneter 2020-06-09 17:09:12 +02:00
parent 4dba45f32a
commit ccb7fa3e44

View file

@ -35,7 +35,9 @@ class Sync(backgroundthread.KillableThread):
"""
if app.SYNC.run_lib_scan in ("full", "repair"):
LOG.info('Full library scan requested, starting')
self.start_library_sync(show_dialog=app.SYNC.run_lib_scan == 'repair',
show_dialog = True if app.SYNC.run_lib_scan == 'repair' \
else None
self.start_library_sync(show_dialog=show_dialog,
repair=app.SYNC.run_lib_scan == 'repair',
block=True)
if (not self.sync_successful and