Merge pull request #124 from TrueTechy/metadata-fix

Update library management dialog titles
This commit is contained in:
mcarlton00 2019-10-16 22:40:14 -04:00 committed by GitHub
commit 896f147560
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 1 deletions

View file

@ -493,7 +493,16 @@ class Library(threading.Thread):
choices = [x['Name'] for x in libraries]
choices.insert(0, _(33121))
selection = dialog("multi", _(33120), choices)
titles = {
"RepairLibrarySelection": 33199,
"SyncLibrarySelection": 33198,
"RemoveLibrarySelection": 33200,
"AddLibrarySelection": 33120
}
title = titles.get(mode, "Failed to get title {}".format(mode))
selection = dialog("multi", _(title), choices)
if selection is None:
return