mirror of
https://github.com/hyprwm/hyprcursor.git
synced 2024-12-22 10:19:48 +01:00
parent
65507c093f
commit
af4ce3953d
1 changed files with 7 additions and 9 deletions
|
@ -141,12 +141,11 @@ static std::string getFullPathForThemeName(const std::string& name, PHYPRCURSORL
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!std::filesystem::exists(MANIFESTPATH))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
CManifest manifest{MANIFESTPATH};
|
CManifest manifest{MANIFESTPATH};
|
||||||
if (!manifest.parse().has_value())
|
if (const auto R = manifest.parse(); R.has_value()) {
|
||||||
|
Debug::log(HC_LOG_ERR, logfn, "failed parsing Manifest of {}: {}", themeDir.path().string(), *R);
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
const std::string NAME = manifest.parsedData.name;
|
const std::string NAME = manifest.parsedData.name;
|
||||||
|
|
||||||
|
@ -177,12 +176,11 @@ static std::string getFullPathForThemeName(const std::string& name, PHYPRCURSORL
|
||||||
|
|
||||||
const auto MANIFESTPATH = themeDir.path().string() + "/manifest";
|
const auto MANIFESTPATH = themeDir.path().string() + "/manifest";
|
||||||
|
|
||||||
if (std::filesystem::exists(MANIFESTPATH + ".hl") || std::filesystem::exists(MANIFESTPATH + ".toml"))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
CManifest manifest{MANIFESTPATH};
|
CManifest manifest{MANIFESTPATH};
|
||||||
if (!manifest.parse().has_value())
|
if (const auto R = manifest.parse(); R.has_value()) {
|
||||||
|
Debug::log(HC_LOG_ERR, logfn, "failed parsing Manifest of {}: {}", themeDir.path().string(), *R);
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
const std::string NAME = manifest.parsedData.name;
|
const std::string NAME = manifest.parsedData.name;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue