More
This commit is contained in:
parent
c27236e644
commit
87d8f90280
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -1305,6 +1305,7 @@ dependencies = [
|
|||
"rawloader",
|
||||
"rayon",
|
||||
"rust-embed",
|
||||
"rustc_version",
|
||||
"rusty-chromaprint",
|
||||
"serde",
|
||||
"serde_json",
|
||||
|
|
|
@ -74,6 +74,7 @@ anyhow = { version = "1.0" }
|
|||
|
||||
state = "0.6"
|
||||
|
||||
rustc_version = "0.4"
|
||||
log = "0.4.20"
|
||||
handsome_logger = "0.8"
|
||||
fun_time = { version = "0.3.1", features = ["log"] }
|
||||
|
|
|
@ -18,7 +18,7 @@ use image::{DynamicImage, ImageBuffer, Rgb};
|
|||
use imagepipe::{ImageSource, Pipeline};
|
||||
#[cfg(feature = "heif")]
|
||||
use libheif_rs::{ColorSpace, HeifContext, RgbChroma};
|
||||
use log::{debug, info, LevelFilter, Record};
|
||||
use log::{debug, info, warn, LevelFilter, Record};
|
||||
|
||||
// #[cfg(feature = "heif")]
|
||||
// use libheif_rs::LibHeif;
|
||||
|
@ -58,11 +58,19 @@ pub fn setup_logger(disabled_printing: bool) {
|
|||
}
|
||||
|
||||
pub fn print_version_mode() {
|
||||
let rust_version = match rustc_version::version_meta() {
|
||||
Ok(meta) => meta.semver.to_string(),
|
||||
Err(_) => "<unknown>".to_string(),
|
||||
};
|
||||
|
||||
info!(
|
||||
"Czkawka version: {}, was compiled with {} mode",
|
||||
"App version: {}, compiled with {} mode on rustc {rust_version}",
|
||||
CZKAWKA_VERSION,
|
||||
if cfg!(debug_assertions) { "debug" } else { "release" }
|
||||
if cfg!(debug_assertions) { "debug" } else { "release" },
|
||||
);
|
||||
if cfg!(debug_assertions) {
|
||||
warn!("You are running debug version of app which is a lot of slower than release version.");
|
||||
}
|
||||
}
|
||||
|
||||
pub fn set_default_number_of_threads() {
|
||||
|
|
|
@ -34,13 +34,14 @@ use crate::connect_progress_receiver::connect_progress_gathering;
|
|||
use crate::connect_show_preview::connect_show_preview;
|
||||
use crate::connect_stop::connect_stop_button;
|
||||
use crate::settings::{load_settings_from_file, reset_settings, save_settings_to_file};
|
||||
use czkawka_core::common::setup_logger;
|
||||
use czkawka_core::common::{print_version_mode, setup_logger};
|
||||
use czkawka_core::common_dir_traversal::ProgressData;
|
||||
use slint::{ModelRc, VecModel};
|
||||
|
||||
slint::include_modules!();
|
||||
fn main() {
|
||||
setup_logger(false);
|
||||
print_version_mode();
|
||||
|
||||
let app = MainWindow::new().unwrap();
|
||||
|
||||
|
|
|
@ -43,6 +43,12 @@ export component MainList {
|
|||
parentPathIdx: 5;
|
||||
fileNameIdx: 4;
|
||||
}
|
||||
focus_item := FocusScope {
|
||||
key-released(event) => {
|
||||
debug(event);
|
||||
accept
|
||||
}
|
||||
}
|
||||
changed_current_tab() => {
|
||||
empty_folders.deselect_selected_item();
|
||||
empty_files.deselect_selected_item();
|
||||
|
|
Loading…
Reference in a new issue