This commit is contained in:
RickyRister 2024-10-19 17:18:35 -07:00 committed by GitHub
parent 2d86938375
commit d1e0f9dfc5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -412,7 +412,11 @@ void SettingsCache::setPicsPath(const QString &_picsPath)
picsPath = _picsPath;
settings->setValue("paths/pics", picsPath);
// get a new value for customPicsPath, currently derived from picsPath
customPicsPath = getSafeConfigPath("paths/custompics", picsPath + "CUSTOM/");
if (picsPath.endsWith("/")) {
customPicsPath = getSafeConfigPath("paths/custompics", picsPath + "CUSTOM/");
} else {
customPicsPath = getSafeConfigPath("paths/custompics", picsPath + "/CUSTOM/");
}
emit picsPathChanged();
}