chore: adapt to changes in libcosmic

This commit is contained in:
Hojjat 2026-09-10 16:17:36 -06:00 • committed by Michael Murphy
parent b933e538c0
commit e01b16f4a2
16 changed files with 51 additions and 80 deletions

View file

@ -38,7 +38,7 @@ pub enum Msg {
TogglePopup(usize),
Hovered(Option<usize>),
WheelScrolled(ScrollDelta),
Surface(surface::Action),
Surface(surface::Action<Msg>),
ToggleOverflow,
HoveredOverflow,
Token(TokenUpdate),
@ -408,9 +408,7 @@ impl cosmic::Application for App {
scroll(id, menu.item.item_proxy().clone(), delta, orientation)
}
Msg::Surface(a) => {
return cosmic::task::message(cosmic::Action::Cosmic(
cosmic::app::Action::Surface(a),
));
return cosmic::task::message(cosmic::Action::Surface(a));
}
Msg::ToggleOverflow => {
if let Some(popup_id) = self.overflow_popup.take() {