modules/hyprland/workspaces: remove deprecated property
This commit is contained in:
parent
9ba5825009
commit
bac4d03813
|
@ -66,7 +66,6 @@ class Workspaces : public AModule, public EventHandler {
|
|||
auto populateBoolConfig(const Json::Value& config, const std::string& key, bool& member) -> void;
|
||||
auto populateSortByConfig(const Json::Value& config) -> void;
|
||||
auto populateIgnoreWorkspacesConfig(const Json::Value& config) -> void;
|
||||
auto populatePersistentWorkspacesConfig(const Json::Value& config) -> void;
|
||||
auto populateFormatWindowSeparatorConfig(const Json::Value& config) -> void;
|
||||
auto populateWindowRewriteConfig(const Json::Value& config) -> void;
|
||||
|
||||
|
|
|
@ -577,9 +577,9 @@ auto Workspaces::parseConfig(const Json::Value &config) -> void {
|
|||
populateBoolConfig(config, "active-only", m_activeOnly);
|
||||
populateBoolConfig(config, "move-to-monitor", m_moveToMonitor);
|
||||
|
||||
m_persistentWorkspaceConfig = config.get("persistent-workspaces", Json::Value());
|
||||
populateSortByConfig(config);
|
||||
populateIgnoreWorkspacesConfig(config);
|
||||
populatePersistentWorkspacesConfig(config);
|
||||
populateFormatWindowSeparatorConfig(config);
|
||||
populateWindowRewriteConfig(config);
|
||||
}
|
||||
|
@ -591,8 +591,8 @@ auto Workspaces::populateIconsMap(const Json::Value &formatIcons) -> void {
|
|||
m_iconsMap.emplace("", "");
|
||||
}
|
||||
|
||||
auto Workspaces::populateBoolConfig(const Json::Value &config, const std::string &key,
|
||||
bool &member) -> void {
|
||||
auto Workspaces::populateBoolConfig(const Json::Value &config, const std::string &key, bool &member)
|
||||
-> void {
|
||||
auto configValue = config[key];
|
||||
if (configValue.isBool()) {
|
||||
member = configValue.asBool();
|
||||
|
@ -632,15 +632,6 @@ auto Workspaces::populateIgnoreWorkspacesConfig(const Json::Value &config) -> vo
|
|||
}
|
||||
}
|
||||
|
||||
auto Workspaces::populatePersistentWorkspacesConfig(const Json::Value &config) -> void {
|
||||
if (config.isMember("persistent-workspaces") || config.isMember("persistent_workspaces")) {
|
||||
spdlog::warn(
|
||||
"persistent_workspaces is deprecated. Please change config to use persistent-workspaces.");
|
||||
m_persistentWorkspaceConfig =
|
||||
config.get("persistent-workspaces", config.get("persistent_workspaces", Json::Value()));
|
||||
}
|
||||
}
|
||||
|
||||
auto Workspaces::populateFormatWindowSeparatorConfig(const Json::Value &config) -> void {
|
||||
auto formatWindowSeparator = config["format-window-separator"];
|
||||
m_formatWindowSeparator =
|
||||
|
|
Loading…
Reference in New Issue