|  |  | @ -79,11 +79,11 @@ void OnroadWindow::mousePressEvent(QMouseEvent* e) { | 
			
		
	
		
		
			
				
					
					|  |  |  | void OnroadWindow::offroadTransition(bool offroad) { |  |  |  | void OnroadWindow::offroadTransition(bool offroad) { | 
			
		
	
		
		
			
				
					
					|  |  |  | #ifdef ENABLE_MAPS |  |  |  | #ifdef ENABLE_MAPS | 
			
		
	
		
		
			
				
					
					|  |  |  |   if (!offroad) { |  |  |  |   if (!offroad) { | 
			
		
	
		
		
			
				
					
					|  |  |  |     if (map == nullptr && QUIState::ui_state.has_prime) { |  |  |  |     if (map == nullptr && (QUIState::ui_state.has_prime || !MAPBOX_TOKEN.isEmpty())) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       QMapboxGLSettings settings; |  |  |  |       QMapboxGLSettings settings; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       // Valid for 4 weeks since we can't swap tokens on the fly
 |  |  |  |       // Valid for 4 weeks since we can't swap tokens on the fly
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       QString token = CommaApi::create_jwt({}, 4 * 7 * 24 * 3600); |  |  |  |       QString token = MAPBOX_TOKEN.isEmpty() ? CommaApi::create_jwt({}, 4 * 7 * 24 * 3600) : MAPBOX_TOKEN; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       if (!Hardware::PC()) { |  |  |  |       if (!Hardware::PC()) { | 
			
		
	
		
		
			
				
					
					|  |  |  |         settings.setCacheDatabasePath("/data/mbgl-cache.db"); |  |  |  |         settings.setCacheDatabasePath("/data/mbgl-cache.db"); | 
			
		
	
	
		
		
			
				
					|  |  | 
 |