Skip to content

Commit

Permalink
qt5 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri0n committed Jul 2, 2024
1 parent 0d37d25 commit 83fb185
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/psithememanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,10 @@ PsiThemeProvider::LoadRestult PsiThemeManager::loadAll()
if (!ctx) {
ctx = new QObject(this);
}
connect(
provider, &PsiThemeProvider::themeChanged, ctx,
[ctx, provider, cleanup]() { cleanup(ctx, provider, false); }, Qt::SingleShotConnection);
connect(
provider, &PsiThemeProvider::currentLoadFailed, ctx,
[ctx, provider, required, cleanup]() { cleanup(ctx, provider, required); }, Qt::SingleShotConnection);
connect(provider, &PsiThemeProvider::themeChanged, ctx,
[ctx, provider, cleanup]() { cleanup(ctx, provider, false); });
connect(provider, &PsiThemeProvider::currentLoadFailed, ctx,
[ctx, provider, required, cleanup]() { cleanup(ctx, provider, required); });
}
d->loadResult = pending->isEmpty() ? PsiThemeProvider::LoadSuccess : PsiThemeProvider::LoadInProgress;
return d->loadResult;
Expand Down

0 comments on commit 83fb185

Please sign in to comment.