1
0
Fork 0
forked from wry/wry

all: add (Clone)Cell::is_some and is_none

This commit is contained in:
Julian Orth 2024-03-02 18:09:40 +01:00
parent 7a67784502
commit 54d93f84da
32 changed files with 98 additions and 62 deletions

View file

@ -88,11 +88,11 @@ impl WorkspaceNode {
}
pub fn is_empty(&self) -> bool {
self.stacked.is_empty() && self.fullscreen.get().is_none() && self.container.get().is_none()
self.stacked.is_empty() && self.fullscreen.is_none() && self.container.is_none()
}
pub fn stacked_visible(&self) -> bool {
self.visible.get() && self.fullscreen.get().is_none()
self.visible.get() && self.fullscreen.is_none()
}
pub fn change_extents(&self, rect: &Rect) {