Merge pull request #868 from jasonrhansen/edit-location
Edit location when clicking on current directory
This commit is contained in:
commit
90e393ef5e
1 changed files with 5 additions and 1 deletions
|
|
@ -3874,7 +3874,11 @@ impl Tab {
|
||||||
widget::button::custom(row)
|
widget::button::custom(row)
|
||||||
.padding(space_xxxs)
|
.padding(space_xxxs)
|
||||||
.class(theme::Button::Link)
|
.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() {
|
if self.location_context_menu_index.is_some() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue