1
0
Fork 0
mirror of synced 2024-06-01 18:19:46 +12:00
czkawka/czkawka_slint_gui/src/connect_open.rs
Rafał Mikrut e859c777a4 Delete
2023-10-22 13:07:38 +02:00

14 lines
334 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
});
}