mirror of https://github.com/lapce/lapce.git
Make sure file is selected if not open
This commit is contained in:
parent
bb24889fec
commit
818876d522
|
@ -450,6 +450,13 @@ fn event(
|
||||||
LapceUICommand::OpenFile(node.path_buf.clone()),
|
LapceUICommand::OpenFile(node.path_buf.clone()),
|
||||||
Target::Widget(data.id),
|
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),
|
||||||
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue