Unverified Commit 7c359b24 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #6596 from DonLakeFlyer/OfflineMapsFixes

Offline Maps: Import/Export fixes
parents 85672ca8 5ee584a5
...@@ -1005,7 +1005,6 @@ QGCView { ...@@ -1005,7 +1005,6 @@ QGCView {
text: qsTr("Export") text: qsTr("Export")
width: _buttonSize width: _buttonSize
visible: QGroundControl.corePlugin.options.showOfflineMapExport visible: QGroundControl.corePlugin.options.showOfflineMapExport
enabled: QGroundControl.mapEngineManager.tileSets.count > 1
onClicked: showExport() onClicked: showExport()
} }
QGCButton { QGCButton {
...@@ -1041,8 +1040,13 @@ QGCView { ...@@ -1041,8 +1040,13 @@ QGCView {
delegate: QGCCheckBox { delegate: QGCCheckBox {
text: object.name text: object.name
checked: object.selected checked: object.selected
onClicked: { onClicked: object.selected = checked
object.selected = checked Connections {
// This connection should theoretically not be needed since the `checked: object.selected` binding should work.
// But for some reason when the user clicks the check box taht binding breaks. Which in turns causes
// Select All/None to update the internal state but check box visible state is out of sync
target: object
onSelectedChanged: checked = object.selected
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment