mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-21 06:53:48 -07:00
@@ -207,7 +207,10 @@ bool DataState::setPluginEnabled(const std::string& name, bool enabled) {
|
|||||||
const auto PATH = getDataStatePath();
|
const auto PATH = getDataStatePath();
|
||||||
|
|
||||||
for (const auto& entry : std::filesystem::directory_iterator(PATH)) {
|
for (const auto& entry : std::filesystem::directory_iterator(PATH)) {
|
||||||
if (!entry.is_directory())
|
if (!entry.is_directory() || entry.path().stem() == "headersRoot")
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if (!std::filesystem::exists(entry.path().string() + "/state.toml"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
auto STATE = toml::parse_file(entry.path().string() + "/state.toml");
|
auto STATE = toml::parse_file(entry.path().string() + "/state.toml");
|
||||||
|
Reference in New Issue
Block a user