preventing persistent_workspaces and all-outputs from being used together

This commit is contained in:
MonstrousOgre 2023-04-06 12:14:44 +05:30
parent 33c4964187
commit 6f3a27905d
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ WorkspaceGroup::WorkspaceGroup(const Bar &bar, Gtk::Box &box, const Json::Value
}
auto WorkspaceGroup::fill_persistent_workspaces() -> void {
if (config_["persistent_workspaces"].isObject()) {
if (config_["persistent_workspaces"].isObject() && !workspace_manager_.all_outputs()) {
const Json::Value &p_workspaces = config_["persistent_workspaces"];
const std::vector<std::string> p_workspaces_names = p_workspaces.getMemberNames();