Edit location when clicking on current directory
This makes it so clicking on the name of the current directory (the last item) in the breadcrumbs puts it into edit mode. Before, it wouldn't do anything, because you're already in the dir. Now it does something useful. This change matches the behavior of Gnome Files.
This commit is contained in:
parent
3e5b14dd23
commit
0604df39ca
1 changed files with 5 additions and 1 deletions
|
|
@ -3874,7 +3874,11 @@ impl Tab {
|
|||
widget::button::custom(row)
|
||||
.padding(space_xxxs)
|
||||
.class(theme::Button::Link)
|
||||
.on_press(Message::Location(location.clone())),
|
||||
.on_press(if ancestor == path {
|
||||
Message::EditLocation(Some(self.location.clone().into()))
|
||||
} else {
|
||||
Message::Location(location.clone())
|
||||
}),
|
||||
);
|
||||
|
||||
if self.location_context_menu_index.is_some() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue