mirror of
				https://github.com/Xetibo/ReSet.git
				synced 2025-10-31 08:05:21 +01:00 
			
		
		
		
	fix: Execute connect function with wifi connect button
This commit is contained in:
		
							parent
							
								
									7d0fc0b9e7
								
							
						
					
					
						commit
						bbfd07688d
					
				
					 1 changed files with 8 additions and 2 deletions
				
			
		|  | @ -177,6 +177,7 @@ pub fn click_new_network(entry: Arc<WifiEntry>) { | |||
| 
 | ||||
|     let result = Arc::new(AtomicBool::new(false)); | ||||
|     let result_ref = result.clone(); | ||||
|     let result_ref_button = result.clone(); | ||||
|     let entryImp = entry.imp(); | ||||
|     let popupImp = entryImp.resetWifiPopup.imp(); | ||||
|     popupImp | ||||
|  | @ -190,8 +191,13 @@ pub fn click_new_network(entry: Arc<WifiEntry>) { | |||
|         })); | ||||
|     popupImp | ||||
|         .resetPopupButton | ||||
|         .connect_clicked(clone!(@weak popupImp => move |_| { | ||||
|             popupImp.resetPopupEntry.activate(); | ||||
|         .connect_clicked(clone!(@weak entry as origEntry,@weak entryImp, @weak popupImp => move |_| { | ||||
|             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(); | ||||
|     println!( | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue