mirror of
https://github.com/ilya-zlobintsev/LACT.git
synced 2025-02-25 18:55:26 -06:00
Don't show apply button on GPU selection
This commit is contained in:
@@ -135,6 +135,8 @@ impl App {
|
||||
.set_ventilation_info(fan_control_info),
|
||||
Err(_) => self.root_stack.thermals_page.hide_fan_controls(),
|
||||
}
|
||||
|
||||
self.apply_revealer.hide();
|
||||
}
|
||||
|
||||
fn start_stats_update_loop(&self, current_gpu_id: Arc<AtomicU32>) {
|
||||
|
||||
@@ -27,13 +27,16 @@ impl ApplyRevealer {
|
||||
pub fn show(&self) {
|
||||
self.container.set_reveal_child(true);
|
||||
}
|
||||
|
||||
|
||||
pub fn hide(&self) {
|
||||
self.container.set_reveal_child(false);
|
||||
}
|
||||
|
||||
pub fn connect_apply_button_clicked<F: Fn() + 'static>(&self, f: F) {
|
||||
let apply_revealer = self.container.clone();
|
||||
|
||||
self.apply_button.connect_clicked(move |_| {
|
||||
f();
|
||||
apply_revealer.set_reveal_child(false);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user