|  |  | @ -124,7 +124,7 @@ AdvancedNetworking::AdvancedNetworking(QWidget* parent, WifiManager* wifi): QWid | 
			
		
	
		
		
			
				
					
					|  |  |  |   main_layout->addWidget(back, 0, Qt::AlignLeft); |  |  |  |   main_layout->addWidget(back, 0, Qt::AlignLeft); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |   // Enable tethering layout
 |  |  |  |   // Enable tethering layout
 | 
			
		
	
		
		
			
				
					
					|  |  |  |   ToggleControl *tetheringToggle = new ToggleControl("Enable Tethering", "", "", wifi->isTetheringEnabled()); |  |  |  |   tetheringToggle = new ToggleControl("Enable Tethering", "", "", wifi->isTetheringEnabled()); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |   main_layout->addWidget(tetheringToggle); |  |  |  |   main_layout->addWidget(tetheringToggle); | 
			
		
	
		
		
			
				
					
					|  |  |  |   QObject::connect(tetheringToggle, &ToggleControl::toggleFlipped, this, &AdvancedNetworking::toggleTethering); |  |  |  |   QObject::connect(tetheringToggle, &ToggleControl::toggleFlipped, this, &AdvancedNetworking::toggleTethering); | 
			
		
	
		
		
			
				
					
					|  |  |  |   main_layout->addWidget(horizontal_line(), 0); |  |  |  |   main_layout->addWidget(horizontal_line(), 0); | 
			
		
	
	
		
		
			
				
					|  |  | @ -155,11 +155,13 @@ AdvancedNetworking::AdvancedNetworking(QWidget* parent, WifiManager* wifi): QWid | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | void AdvancedNetworking::refresh() { |  |  |  | void AdvancedNetworking::refresh() { | 
			
		
	
		
		
			
				
					
					|  |  |  |   ipLabel->setText(wifi->ipv4_address); |  |  |  |   ipLabel->setText(wifi->ipv4_address); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |   tetheringToggle->setEnabled(true); | 
			
		
	
		
		
			
				
					
					|  |  |  |   update(); |  |  |  |   update(); | 
			
		
	
		
		
			
				
					
					|  |  |  | } |  |  |  | } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | void AdvancedNetworking::toggleTethering(bool enabled) { |  |  |  | void AdvancedNetworking::toggleTethering(bool enabled) { | 
			
		
	
		
		
			
				
					
					|  |  |  |   wifi->setTetheringEnabled(enabled); |  |  |  |   wifi->setTetheringEnabled(enabled); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |   tetheringToggle->setEnabled(false); | 
			
		
	
		
		
			
				
					
					|  |  |  | } |  |  |  | } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | // WifiUI functions
 |  |  |  | // WifiUI functions
 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |