Merge pull request #1192 from croneter/fix-dialog

Fix regression: sync dialog not showing up when it should
This commit is contained in:
croneter 2020-07-11 15:49:18 +02:00 committed by GitHub
commit 618c7388b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

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