fix: use enable and disable methods
This commit is contained in:
parent
344567dd8d
commit
61cdb6fe1f
2 changed files with 24 additions and 7 deletions
|
|
@ -1960,9 +1960,14 @@ fn run_action<'a, P, C>(
|
|||
window.raw.request_redraw();
|
||||
}
|
||||
}
|
||||
window::Action::SetBlur(enable) => {
|
||||
for (_, window) in window_manager.iter_mut() {
|
||||
window.raw.set_blur(enable);
|
||||
window::Action::EnableBlur(id) => {
|
||||
if let Some(window) = window_manager.get_mut(id) {
|
||||
window.raw.set_blur(true);
|
||||
}
|
||||
}
|
||||
window::Action::DisableBlur(id) => {
|
||||
if let Some(window) = window_manager.get_mut(id) {
|
||||
window.raw.set_blur(false);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue