Improved ghost with paginator

This commit is contained in:
2025-08-09 02:44:17 +02:00
parent 3520369e35
commit 20a9d2b216
3 changed files with 7 additions and 7 deletions
+2 -6
View File
@@ -161,12 +161,8 @@ impl Widget {
pub fn set_focused(&self, f: bool) {
match self {
Self::Dynamic(w) => {
*w.focused.lock().unwrap() = f && !w.element.lock().unwrap().is_ghost()
}
Self::Static(w) => {
*w.focused.lock().unwrap() = f && !w.element.lock().unwrap().is_ghost()
}
Self::Dynamic(w) => *w.focused.lock().unwrap() = f,
Self::Static(w) => *w.focused.lock().unwrap() = f,
}
}