diff --git a/src/app/cosmic.rs b/src/app/cosmic.rs index 8bcd98c2..76438aa3 100644 --- a/src/app/cosmic.rs +++ b/src/app/cosmic.rs @@ -369,6 +369,7 @@ impl Cosmic { Message::ContextDrawer(show) => { self.app.core_mut().window.show_context = show; + return self.app.on_context_drawer(); } Message::Drag => return command::drag(Some(self.app.main_window_id())), diff --git a/src/app/mod.rs b/src/app/mod.rs index 93a91a70..1487d72c 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -490,6 +490,11 @@ where None } + // Called when context drawer is toggled + fn on_context_drawer(&mut self) -> iced::Command> { + iced::Command::none() + } + /// Called when the escape key is pressed. fn on_escape(&mut self) -> iced::Command> { iced::Command::none()