Make sure file is selected if not open

This commit is contained in:
Dániel Buga 2022-04-07 09:43:51 +02:00
parent bb24889fec
commit 818876d522
1 changed files with 7 additions and 0 deletions

View File

@ -450,6 +450,13 @@ fn event(
LapceUICommand::OpenFile(node.path_buf.clone()),
Target::Widget(data.id),
));
ctx.submit_command(Command::new(
LAPCE_UI_COMMAND,
LapceUICommand::ActiveFileChanged {
path: Some(node.path_buf.clone()),
},
Target::Widget(file_explorer.widget_id),
));
}
}
}