Fix left clicking in empty folder to clear context menu
This commit is contained in:
parent
4c522b0eee
commit
f252db7415
1 changed files with 3 additions and 3 deletions
|
|
@ -3581,8 +3581,7 @@ impl Tab {
|
||||||
pub fn empty_view(&self, has_hidden: bool) -> Element<Message> {
|
pub fn empty_view(&self, has_hidden: bool) -> Element<Message> {
|
||||||
let cosmic_theme::Spacing { space_xxs, .. } = theme::active().cosmic().spacing;
|
let cosmic_theme::Spacing { space_xxs, .. } = theme::active().cosmic().spacing;
|
||||||
|
|
||||||
//TODO: left clicking on an empty folder does not clear context menu
|
mouse_area::MouseArea::new(widget::column::with_children(vec![widget::container(
|
||||||
widget::column::with_children(vec![widget::container(
|
|
||||||
widget::column::with_children(match self.mode {
|
widget::column::with_children(match self.mode {
|
||||||
Mode::App | Mode::Dialog(_) => vec![
|
Mode::App | Mode::Dialog(_) => vec![
|
||||||
widget::icon::from_name("folder-symbolic")
|
widget::icon::from_name("folder-symbolic")
|
||||||
|
|
@ -3604,7 +3603,8 @@ impl Tab {
|
||||||
.spacing(space_xxs),
|
.spacing(space_xxs),
|
||||||
)
|
)
|
||||||
.center(Length::Fill)
|
.center(Length::Fill)
|
||||||
.into()])
|
.into()]))
|
||||||
|
.on_press(|_| Message::Click(None))
|
||||||
.into()
|
.into()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue