Simplify compositor and shell conditionals
Flatten nested guards in swipe cleanup, recording updates and popup dismissal. Use an eager optional fallback for workspace layouts and an array in the malformed-opacity test.
This commit is contained in:
1 parent
3ba1f3522d
commit
5706a71941
5 files changed
+13
-15
No files matched your search
@@ -153,10 +153,11 @@ impl FereseShell {
|
||||
}
|
||||
|
||||
pub fn animate_menu(&mut self) -> Task<Message> {
|
||||
if let Some(menu) = &self.menu {
|
||||
if menu.motion.closing() && !menu.animating() {
|
||||
return self.destroy_menu();
|
||||
}
|
||||
if let Some(menu) = &self.menu
|
||||
&& menu.motion.closing()
|
||||
&& !menu.animating()
|
||||
{
|
||||
return self.destroy_menu();
|
||||
}
|
||||
Task::none()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user