mirror of
https://github.com/hyprwm/hyprcursor.git
synced 2024-11-16 18:25:58 +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;
|
||||
}
|
||||
|
||||
if (!std::filesystem::exists(MANIFESTPATH))
|
||||
continue;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
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";
|
||||
|
||||
if (std::filesystem::exists(MANIFESTPATH + ".hl") || std::filesystem::exists(MANIFESTPATH + ".toml"))
|
||||
continue;
|
||||
|
||||
CManifest manifest{MANIFESTPATH};
|
||||
if (!manifest.parse().has_value())
|
||||
CManifest manifest{MANIFESTPATH};
|
||||
if (const auto R = manifest.parse(); R.has_value()) {
|
||||
Debug::log(HC_LOG_ERR, logfn, "failed parsing Manifest of {}: {}", themeDir.path().string(), *R);
|
||||
continue;
|
||||
}
|
||||
|
||||
const std::string NAME = manifest.parsedData.name;
|
||||
|
||||
|
|
Loading…
Reference in a new issue