mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Mobile: only show dive computers in the Bluetooth connection list
And offer an option to show all devices in the settings. This is intentionally not stored in the preferences as this should never be needed. We don't support BT or BLE dive computers that we don't recognize. This is a last resort in case a new firmware were to change the name or some other weird issue causes us not to recognize a dive computer - and that should be fixed instead of worked around. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									f35a0f3b09
								
							
						
					
					
						commit
						9d582c5512
					
				
					 5 changed files with 60 additions and 2 deletions
				
			
		|  | @ -144,7 +144,8 @@ QMLManager::QMLManager() : m_locationServiceEnabled(false), | |||
| 	m_updateSelectedDive(-1), | ||||
| 	m_selectedDiveTimestamp(0), | ||||
| 	alreadySaving(false), | ||||
| 	m_pluggedInDeviceName("") | ||||
| 	m_pluggedInDeviceName(""), | ||||
| 	m_showNonDiveComputers(false) | ||||
| { | ||||
| 	LOG_STP("qmlmgr starting"); | ||||
| 	m_instance = this; | ||||
|  | @ -1979,6 +1980,12 @@ void QMLManager::setFilter(const QString filterText) | |||
| 			  }); | ||||
| } | ||||
| 
 | ||||
| void QMLManager::setShowNonDiveComputers(bool show) | ||||
| { | ||||
| 	m_showNonDiveComputers = show; | ||||
| 	BTDiscovery::instance()->showNonDiveComputers(show); | ||||
| } | ||||
| 
 | ||||
| #if defined(Q_OS_ANDROID) | ||||
| // implemented in core/android.cpp
 | ||||
| void checkPendingIntents(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue