diff --git a/src/app/cosmic.rs b/src/app/cosmic.rs index 4da3654e..e06840ca 100644 --- a/src/app/cosmic.rs +++ b/src/app/cosmic.rs @@ -332,6 +332,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(None), diff --git a/src/app/mod.rs b/src/app/mod.rs index 5877d451..0de53d9d 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -440,6 +440,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()