immich improvements
This commit is contained in:
16
src/main.cpp
16
src/main.cpp
@@ -156,6 +156,7 @@ void ConfigureWindowFromSettings(MainWindow &w, const AppConfig &appConfig)
|
||||
std::unique_ptr<Overlay> o = std::unique_ptr<Overlay>(new Overlay(appConfig.overlay));
|
||||
w.setOverlay(o);
|
||||
}
|
||||
w.setDebugThumbnail(appConfig.debugThumbnail);
|
||||
w.setBaseOptions(appConfig.baseDisplayOptions);
|
||||
}
|
||||
|
||||
@@ -370,6 +371,11 @@ static bool ApplyImmichPayload(ImmichConfig &config, const QString &payload)
|
||||
config.refreshSeconds = (int)obj["refreshSeconds"].toDouble();
|
||||
changed = true;
|
||||
}
|
||||
if (obj.contains("skipRetrySeconds") && obj["skipRetrySeconds"].isDouble())
|
||||
{
|
||||
config.skipRetrySeconds = (int)obj["skipRetrySeconds"].toDouble();
|
||||
changed = true;
|
||||
}
|
||||
if (obj.contains("includeArchived"))
|
||||
{
|
||||
if (obj["includeArchived"].isBool())
|
||||
@@ -543,6 +549,16 @@ static bool ApplyImmichPayload(ImmichConfig &config, const QString &payload)
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if (key == "skipretryseconds")
|
||||
{
|
||||
bool ok = false;
|
||||
int parsed = value.toInt(&ok);
|
||||
if (ok)
|
||||
{
|
||||
config.skipRetrySeconds = parsed;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user