1
0
Fork 0
mirror of synced 2024-06-01 18:19:46 +12:00
czkawka/krokiet/src/connect_open.rs
Rafał Mikrut 727dd4fce8 Upt
2023-11-06 22:03:44 +01:00

14 lines
333 B
Rust

use crate::MainWindow;
pub fn connect_open_items(app: &MainWindow) {
app.on_item_opened(move |path| {
match open::that(&*path) {
Ok(()) => {}
Err(e) => {
eprintln!("Failed to open file: {e}");
}
};
// TODO - this should be added to line edit
});
}