kms: Correctly apply disabled confs

This commit is contained in:
Victoria Brekenfeld 2022-11-11 21:36:42 +01:00
parent 544acecd2e
commit bca72a9b0e
5 changed files with 43 additions and 62 deletions

View file

@ -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);