|
|
|
@ -14,6 +14,7 @@ use glib::Priority;
|
|
|
|
|
use gtk4::gio::ApplicationFlags;
|
|
|
|
|
use gtk4::prelude::*;
|
|
|
|
|
use gtk4::Application;
|
|
|
|
|
use log::info;
|
|
|
|
|
|
|
|
|
|
use connect_things::connect_about_buttons::*;
|
|
|
|
|
use connect_things::connect_button_compare::*;
|
|
|
|
@ -33,7 +34,7 @@ use connect_things::connect_selection_of_directories::*;
|
|
|
|
|
use connect_things::connect_settings::*;
|
|
|
|
|
use connect_things::connect_show_hide_ui::*;
|
|
|
|
|
use connect_things::connect_similar_image_size_change::*;
|
|
|
|
|
use czkawka_core::common::{get_number_of_threads, set_number_of_threads, setup_logger};
|
|
|
|
|
use czkawka_core::common::{get_number_of_threads, print_version_mode, set_number_of_threads, setup_logger};
|
|
|
|
|
use czkawka_core::common_dir_traversal::ProgressData;
|
|
|
|
|
use czkawka_core::*;
|
|
|
|
|
use gui_structs::gui_data::*;
|
|
|
|
@ -72,6 +73,7 @@ fn main() {
|
|
|
|
|
let application = Application::new(None::<String>, ApplicationFlags::HANDLES_OPEN | ApplicationFlags::HANDLES_COMMAND_LINE);
|
|
|
|
|
application.connect_command_line(move |app, cmdline| {
|
|
|
|
|
setup_logger(false);
|
|
|
|
|
print_version_mode();
|
|
|
|
|
build_ui(app, &cmdline.arguments());
|
|
|
|
|
0
|
|
|
|
|
});
|
|
|
|
@ -101,7 +103,7 @@ fn build_ui(application: &Application, arguments: &[OsString]) {
|
|
|
|
|
arguments,
|
|
|
|
|
);
|
|
|
|
|
set_number_of_threads(gui_data.settings.scale_settings_number_of_threads.value().round() as usize);
|
|
|
|
|
println!("Set thread number to {}", get_number_of_threads());
|
|
|
|
|
info!("Set thread number to {}", get_number_of_threads());
|
|
|
|
|
|
|
|
|
|
// Needs to run when entire GUI is initialized
|
|
|
|
|
connect_change_language(&gui_data);
|
|
|
|
|