We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6a6e55 commit a047380Copy full SHA for a047380
czkawka_gui/src/connect_button_search.rs
@@ -13,6 +13,7 @@ use czkawka_core::temporary::Temporary;
13
use czkawka_core::zeroed::ZeroedFiles;
14
use glib::Sender;
15
use gtk::prelude::*;
16
+use gtk::WindowPosition;
17
use std::thread;
18
19
#[allow(clippy::too_many_arguments)]
@@ -88,6 +89,9 @@ pub fn connect_button_search(
88
89
90
entry_info.set_text("Searching data, it may take a while, please wait...");
91
92
+ // Set dialog to center to current screen(it is impossible to center it to main window)
93
+ dialog_progress.set_position(WindowPosition::CenterOnParent);
94
+
95
// Resets progress bars
96
progress_bar_all_stages.set_fraction(0 as f64);
97
progress_bar_current_stage.set_fraction(0 as f64);
0 commit comments