mirror of
https://github.com/hyprwm/hyprcursor.git
synced 2024-11-16 18:25:58 +01:00
core: fix theme cycling
This commit is contained in:
parent
68fb602188
commit
a5cfddb46f
1 changed files with 9 additions and 0 deletions
|
@ -89,6 +89,9 @@ static std::string getFullPathForThemeName(const std::string& name) {
|
|||
if (!themeDir.is_directory())
|
||||
continue;
|
||||
|
||||
if (!name.empty() && themeDir.path().stem().string() != name)
|
||||
continue;
|
||||
|
||||
const auto MANIFESTPATH = themeDir.path().string() + "/manifest.hl";
|
||||
|
||||
if (std::filesystem::exists(MANIFESTPATH))
|
||||
|
@ -106,6 +109,9 @@ static std::string getFullPathForThemeName(const std::string& name) {
|
|||
if (!themeDir.is_directory())
|
||||
continue;
|
||||
|
||||
if (!name.empty() && themeDir.path().stem().string() != name)
|
||||
continue;
|
||||
|
||||
const auto MANIFESTPATH = themeDir.path().string() + "/manifest.hl";
|
||||
|
||||
if (std::filesystem::exists(MANIFESTPATH))
|
||||
|
@ -113,6 +119,9 @@ static std::string getFullPathForThemeName(const std::string& name) {
|
|||
}
|
||||
}
|
||||
|
||||
if (!name.empty()) // try without name
|
||||
return getFullPathForThemeName("");
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue