use the set_show_context function, and mention it in the doc
This commit is contained in:
parent
98aed56e6a
commit
1198be359b
2 changed files with 2 additions and 2 deletions
|
|
@ -110,8 +110,7 @@ impl cosmic::Application for App {
|
|||
fn update(&mut self, message: Self::Message) -> Task<Self::Message> {
|
||||
match message {
|
||||
Message::ToggleAbout => {
|
||||
self.core.window.show_context = !self.core.window.show_context;
|
||||
self.core.set_show_context(self.core.window.show_context);
|
||||
self.set_show_context(!self.core.window.show_context);
|
||||
self.show_about = !self.show_about;
|
||||
}
|
||||
Message::Open(url) => match open::that_detached(url) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue