find boos cmake new policy

magick instead of convert rendering images
This commit is contained in:
Blue 2024-10-27 20:02:34 +02:00
parent 3cc7db8eff
commit 85ff6c25ba
Signed by untrusted user: blue
GPG key ID: 9B203B252A63EE38
3 changed files with 24 additions and 27 deletions

View file

@ -58,6 +58,7 @@ Root::~Root() {
delete gui;
if (core != nullptr)
delete core;
delete coreThread;
}
delete global;
@ -72,13 +73,13 @@ void Root::initializeTranslation() {
bool found = false;
for (QString share : shares) {
found = currentTranslator.load(QLocale(), QLatin1String("squawk"), ".", share + "/l10n");
if (found) {
if (found)
break;
}
}
if (!found) {
if (!found)
currentTranslator.load(QLocale(), QLatin1String("squawk"), ".", QCoreApplication::applicationDirPath());
}
installTranslator(&currentTranslator);
}
@ -94,18 +95,16 @@ bool Root::initializeSettings() {
QVariant vs = settings.value("style");
if (vs.isValid()) {
QString style = vs.toString().toLower();
if (style != "system") {
if (style != "system")
Shared::Global::setStyle(style);
}
}
if (Shared::Global::supported("colorSchemeTools")) {
QVariant vt = settings.value("theme");
if (vt.isValid()) {
QString theme = vt.toString();
if (theme.toLower() != "system") {
if (theme.toLower() != "system")
Shared::Global::setTheme(theme);
}
}
}