mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-04-18 18:48:33 +02:00
fix: Execute connect function with wifi connect button
This commit is contained in:
parent
7d0fc0b9e7
commit
bbfd07688d
|
@ -177,6 +177,7 @@ pub fn click_new_network(entry: Arc<WifiEntry>) {
|
||||||
|
|
||||||
let result = Arc::new(AtomicBool::new(false));
|
let result = Arc::new(AtomicBool::new(false));
|
||||||
let result_ref = result.clone();
|
let result_ref = result.clone();
|
||||||
|
let result_ref_button = result.clone();
|
||||||
let entryImp = entry.imp();
|
let entryImp = entry.imp();
|
||||||
let popupImp = entryImp.resetWifiPopup.imp();
|
let popupImp = entryImp.resetWifiPopup.imp();
|
||||||
popupImp
|
popupImp
|
||||||
|
@ -190,8 +191,13 @@ pub fn click_new_network(entry: Arc<WifiEntry>) {
|
||||||
}));
|
}));
|
||||||
popupImp
|
popupImp
|
||||||
.resetPopupButton
|
.resetPopupButton
|
||||||
.connect_clicked(clone!(@weak popupImp => move |_| {
|
.connect_clicked(clone!(@weak entry as origEntry,@weak entryImp, @weak popupImp => move |_| {
|
||||||
popupImp.resetPopupEntry.activate();
|
let entry = entryImp.resetWifiPopup.imp().resetPopupEntry.text().to_string();
|
||||||
|
result_ref_button.store(
|
||||||
|
connect_new_network(origEntry, entryImp.accessPoint.clone().take(), entry),
|
||||||
|
std::sync::atomic::Ordering::SeqCst,
|
||||||
|
);
|
||||||
|
entryImp.resetWifiPopup.popdown();
|
||||||
}));
|
}));
|
||||||
entryImp.resetWifiPopup.popup();
|
entryImp.resetWifiPopup.popup();
|
||||||
println!(
|
println!(
|
||||||
|
|
Loading…
Reference in a new issue