Merge pull request #868 from jasonrhansen/edit-location

Edit location when clicking on current directory
This commit is contained in:
Jeremy Soller 2025-03-09 16:59:48 -06:00 committed by GitHub
commit 90e393ef5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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() {