|  |  | @ -94,9 +94,9 @@ QWidget * Setup::network_setup() { | 
			
		
	
		
		
			
				
					
					|  |  |  |   main_layout->addSpacing(25); |  |  |  |   main_layout->addSpacing(25); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |   // wifi widget
 |  |  |  |   // wifi widget
 | 
			
		
	
		
		
			
				
					
					|  |  |  |   Networking *wifi = new Networking(this, false); |  |  |  |   Networking *networking = new Networking(this, false); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   wifi->setStyleSheet("Networking {background-color: #292929; border-radius: 13px;}"); |  |  |  |   networking->setStyleSheet("Networking {background-color: #292929; border-radius: 13px;}"); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   main_layout->addWidget(wifi, 1); |  |  |  |   main_layout->addWidget(networking, 1); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |   main_layout->addSpacing(35); |  |  |  |   main_layout->addSpacing(35); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -120,7 +120,12 @@ QWidget * Setup::network_setup() { | 
			
		
	
		
		
			
				
					
					|  |  |  |   HttpRequest *request = new HttpRequest(this, false, 2500); |  |  |  |   HttpRequest *request = new HttpRequest(this, false, 2500); | 
			
		
	
		
		
			
				
					
					|  |  |  |   QObject::connect(request, &HttpRequest::requestDone, [=](bool success) { |  |  |  |   QObject::connect(request, &HttpRequest::requestDone, [=](bool success) { | 
			
		
	
		
		
			
				
					
					|  |  |  |     cont->setEnabled(success); |  |  |  |     cont->setEnabled(success); | 
			
		
	
		
		
			
				
					
					|  |  |  |     cont->setText(success ? "Continue" : "Waiting for internet"); |  |  |  |     if (success) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       const bool cell = networking->wifi->currentNetworkType() == NetworkType::CELL; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       cont->setText(cell ? "Continue without WiFi" : "Continue"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       cont->setText("Waiting for internet"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  |     repaint(); |  |  |  |     repaint(); | 
			
		
	
		
		
			
				
					
					|  |  |  |   }); |  |  |  |   }); | 
			
		
	
		
		
			
				
					
					|  |  |  |   request->sendRequest(DASHCAM_URL); |  |  |  |   request->sendRequest(DASHCAM_URL); | 
			
		
	
	
		
		
			
				
					|  |  | 
 |