feat: don't include hidden workspaces
This commit is contained in:
parent
8a3fd21b26
commit
031ec45cd7
13 changed files with 98 additions and 55 deletions
|
|
@ -1,6 +1,6 @@
|
|||
mod imp;
|
||||
|
||||
use crate::{workspace_object::WorkspaceObject, Activate, TX, utils::WorkspaceEvent};
|
||||
use crate::{utils::WorkspaceEvent, workspace_object::WorkspaceObject, Activate, TX};
|
||||
use glib::Object;
|
||||
use gtk4::{glib, prelude::*, subclass::prelude::*, ToggleButton};
|
||||
|
||||
|
|
@ -44,7 +44,11 @@ impl WorkspaceButton {
|
|||
let id_clone = id.clone();
|
||||
if !is_active {
|
||||
glib::MainContext::default().spawn_local(async move {
|
||||
TX.get().unwrap().send(WorkspaceEvent::Activate(id_clone)).await.unwrap();
|
||||
TX.get()
|
||||
.unwrap()
|
||||
.send(WorkspaceEvent::Activate(id_clone))
|
||||
.await
|
||||
.unwrap();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue