parent
4547c93a37
commit
74e08fa2ce
1 changed files with 6 additions and 1 deletions
|
|
@ -326,6 +326,7 @@ pub enum Message {
|
||||||
SearchActivate,
|
SearchActivate,
|
||||||
SearchClear,
|
SearchClear,
|
||||||
SearchInput(String),
|
SearchInput(String),
|
||||||
|
SetShowDetails(bool),
|
||||||
SystemThemeModeChange(cosmic_theme::ThemeMode),
|
SystemThemeModeChange(cosmic_theme::ThemeMode),
|
||||||
Size(Size),
|
Size(Size),
|
||||||
TabActivate(Entity),
|
TabActivate(Entity),
|
||||||
|
|
@ -1762,7 +1763,7 @@ impl Application for App {
|
||||||
// of closing everything on one press
|
// of closing everything on one press
|
||||||
if self.core.window.show_context {
|
if self.core.window.show_context {
|
||||||
self.set_show_context(false);
|
self.set_show_context(false);
|
||||||
return Task::none();
|
return cosmic::task::message(app::Message::App(Message::SetShowDetails(false)));
|
||||||
}
|
}
|
||||||
if self.search_get().is_some() {
|
if self.search_get().is_some() {
|
||||||
// Close search if open
|
// Close search if open
|
||||||
|
|
@ -2729,6 +2730,10 @@ impl Application for App {
|
||||||
Message::SearchInput(input) => {
|
Message::SearchInput(input) => {
|
||||||
return self.search_set(Some(input));
|
return self.search_set(Some(input));
|
||||||
}
|
}
|
||||||
|
Message::SetShowDetails(show_details) => {
|
||||||
|
config_set!(show_details, show_details);
|
||||||
|
return self.update_config();
|
||||||
|
}
|
||||||
Message::SystemThemeModeChange(_theme_mode) => {
|
Message::SystemThemeModeChange(_theme_mode) => {
|
||||||
return self.update_config();
|
return self.update_config();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue