mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	QML UI: correctly set up the divecomputer for download
If we find a paired BT divecomputer, this will populate vendor and product correctly for that device. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									bde73f05d4
								
							
						
					
					
						commit
						8faf33eac6
					
				
					 1 changed files with 7 additions and 2 deletions
				
			
		|  | @ -58,13 +58,18 @@ Kirigami.Page { | ||||||
| 				Layout.fillWidth: true | 				Layout.fillWidth: true | ||||||
| 				model: vendorList | 				model: vendorList | ||||||
| 				currentIndex: manager.getVendorIndex() | 				currentIndex: manager.getVendorIndex() | ||||||
|  | 				onCurrentTextChanged: { | ||||||
|  | 					comboProduct.model = manager.getDCListFromVendor(comboVendor.currentText) | ||||||
|  | 					if (currentIndex == manager.getVendorIndex()) | ||||||
|  | 						comboProduct.currentIndex = manager.getProductIndex() | ||||||
|  | 				} | ||||||
| 			} | 			} | ||||||
| 			Kirigami.Label { text: qsTr(" Dive Computer:") } | 			Kirigami.Label { text: qsTr(" Dive Computer:") } | ||||||
| 			ComboBox { | 			ComboBox { | ||||||
| 				id: comboProduct | 				id: comboProduct | ||||||
| 				Layout.fillWidth: true | 				Layout.fillWidth: true | ||||||
| 				model: manager.getDCListFromVendor(comboVendor.currentText) | 				model: null | ||||||
| 				currentIndex: manager.getProductIndex() | 				currentIndex: -1 | ||||||
| 			} | 			} | ||||||
| 			Kirigami.Label { text: qsTr("Bluetooth download:") } | 			Kirigami.Label { text: qsTr("Bluetooth download:") } | ||||||
| 			CheckBox { | 			CheckBox { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue