Formatting

This commit is contained in:
Jonas Kvinge
2021-08-23 21:21:08 +02:00
parent ed7794f396
commit ea2bfbda44
111 changed files with 833 additions and 425 deletions

View File

@@ -142,7 +142,7 @@ void AlbumCoverFetcherSearch::ProviderSearchResults(const int id, const CoverPro
void AlbumCoverFetcherSearch::ProviderSearchResults(CoverProvider *provider, const CoverProviderSearchResults &results) {
CoverProviderSearchResults results_copy(results);
for (int i = 0 ; i < results_copy.count() ; ++i) {
for (int i = 0; i < results_copy.count(); ++i) {
results_copy[i].provider = provider->name();
results_copy[i].score_provider = provider->quality();

View File

@@ -47,10 +47,12 @@ void CoverExportRunnable::run() {
EmitCoverSkipped();
}
else {
if (dialog_result_.RequiresCoverProcessing())
if (dialog_result_.RequiresCoverProcessing()) {
ProcessAndExportCover();
else
}
else {
ExportCover();
}
}
}
@@ -148,10 +150,12 @@ void CoverExportRunnable::ProcessAndExportCover() {
}
}
if (cover.save(new_file))
if (cover.save(new_file)) {
EmitCoverExported();
else
}
else {
EmitCoverSkipped();
}
}