kms: Correctly apply disabled confs
This commit is contained in:
parent
544acecd2e
commit
bca72a9b0e
5 changed files with 43 additions and 62 deletions
|
|
@ -421,6 +421,10 @@ impl Shell {
|
|||
}
|
||||
|
||||
pub fn add_output(&mut self, output: &Output) {
|
||||
if self.outputs.contains(output) {
|
||||
return;
|
||||
}
|
||||
|
||||
self.outputs.push(output.clone());
|
||||
let mut state = self.workspace_state.update();
|
||||
|
||||
|
|
@ -445,6 +449,10 @@ impl Shell {
|
|||
}
|
||||
|
||||
pub fn remove_output(&mut self, output: &Output) {
|
||||
if !self.outputs.contains(output) {
|
||||
return;
|
||||
}
|
||||
|
||||
let mut state = self.workspace_state.update();
|
||||
self.outputs.retain(|o| o != output);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue