wip: hook up panel messages

This commit is contained in:
Ashley Wulber 2023-05-23 15:02:41 -04:00 committed by Michael Aaron Murphy
parent ce15eebdb8
commit e7996f69dd
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
6 changed files with 189 additions and 9 deletions

View file

@ -20,7 +20,10 @@ use cosmic::{
use crate::{
config::{self, Config},
pages::{desktop, sound, system, time},
pages::{
desktop::{self, panel},
sound, system, time,
},
widget::{page_title, parent_page_button, search_header, sub_page_button},
};
@ -216,6 +219,11 @@ impl Application for SettingsApp {
crate::pages::Message::Page(page) => {
return self.activate_page(page);
}
crate::pages::Message::Panel(message) => {
if let Some(page) = self.pages.page_mut::<panel::Page>() {
page.update(message);
}
}
},
}
ret