fix: use app container created by window & only create dock object from window list if a matching app info is found
This commit is contained in:
parent
adc02df64f
commit
83fc8893ec
5 changed files with 18 additions and 20 deletions
|
|
@ -8,7 +8,6 @@ use gtk4::{
|
|||
prelude::*,
|
||||
subclass::prelude::*,
|
||||
};
|
||||
use tokio::sync::mpsc;
|
||||
|
||||
mod imp;
|
||||
|
||||
|
|
@ -43,6 +42,10 @@ impl CosmicAppListWindow {
|
|||
self_
|
||||
}
|
||||
|
||||
pub fn apps_container(&self) -> &AppsContainer {
|
||||
imp::CosmicAppListWindow::from_instance(&self).inner.get().unwrap()
|
||||
}
|
||||
|
||||
fn setup_shortcuts(&self) {
|
||||
let window = self.clone().upcast::<gtk4::Window>();
|
||||
let action_quit = gio::SimpleAction::new("quit", None);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue