Format
This commit is contained in:
parent
3c5dcecf2b
commit
b430656966
1 changed files with 6 additions and 2 deletions
|
|
@ -254,7 +254,9 @@ impl<T: Application> Cosmic<T> {
|
|||
#[cfg(not(feature = "wayland"))]
|
||||
#[allow(clippy::unused_self)]
|
||||
pub fn close(&mut self) -> iced::Command<super::Message<T::Message>> {
|
||||
iced::Command::single(Action::Window(WindowAction::Close(self.app.main_window_id())))
|
||||
iced::Command::single(Action::Window(WindowAction::Close(
|
||||
self.app.main_window_id(),
|
||||
)))
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_lines)]
|
||||
|
|
@ -321,7 +323,9 @@ impl<T: Application> Cosmic<T> {
|
|||
keyboard_nav::Message::Escape => return self.app.on_escape(),
|
||||
keyboard_nav::Message::Search => return self.app.on_search(),
|
||||
|
||||
keyboard_nav::Message::Fullscreen => return command::toggle_maximize(Some(self.app.main_window_id())),
|
||||
keyboard_nav::Message::Fullscreen => {
|
||||
return command::toggle_maximize(Some(self.app.main_window_id()))
|
||||
}
|
||||
},
|
||||
|
||||
Message::ContextDrawer(show) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue