Add properties to bread crumbs context menu

This commit is contained in:
Jason Rodney Hansen 2024-06-30 13:33:44 -06:00 committed by Jeremy Soller
parent 26423beaac
commit 419a4dcdc7
4 changed files with 46 additions and 0 deletions

View file

@ -540,6 +540,7 @@ pub enum Command {
OpenFile(PathBuf),
OpenInNewTab(PathBuf),
OpenInNewWindow(PathBuf),
LocationProperties(usize),
Scroll(widget::Id, AbsoluteOffset),
DropFiles(PathBuf, ClipboardPaste),
Timeout(Duration, Message),
@ -592,6 +593,7 @@ pub enum Message {
pub enum LocationMenuAction {
OpenInNewTab(usize),
OpenInNewWindow(usize),
Properties(usize),
}
impl MenuAction for LocationMenuAction {
@ -1297,6 +1299,9 @@ impl Tab {
commands.push(Command::OpenInNewWindow(path));
}
}
LocationMenuAction::Properties(ancestor_index) => {
commands.push(Command::LocationProperties(ancestor_index));
}
}
}
Message::Drag(rect_opt) => match rect_opt {