Skip to content

Commit

Permalink
bugfix: fixed selection of exported config type
Browse files Browse the repository at this point in the history
  • Loading branch information
Nethius committed Jan 15, 2025
1 parent 53c0080 commit ea6f271
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions client/ui/qml/Pages2/PageShare.qml
Original file line number Diff line number Diff line change
Expand Up @@ -481,9 +481,11 @@ PageType {
headerText: qsTr("Connection format")

listView: ListViewWithRadioButtonType {
id: exportTypeSelectorListView

onCurrentIndexChanged: {
exportTypeSelector.currentIndex = currentIndex
exportTypeSelector.text = selectedText
exportTypeSelector.currentIndex = exportTypeSelectorListView.selectedIndex
exportTypeSelector.text = exportTypeSelectorListView.selectedText
}

rootWidth: root.width
Expand All @@ -494,14 +496,14 @@ PageType {
currentIndex: 0

clickedFunction: function() {
exportTypeSelector.text = selectedText
exportTypeSelector.currentIndex = currentIndex
exportTypeSelector.text = exportTypeSelectorListView.selectedText
exportTypeSelector.currentIndex = exportTypeSelectorListView.selectedIndex
exportTypeSelector.closeTriggered()
}

Component.onCompleted: {
exportTypeSelector.text = selectedText
exportTypeSelector.currentIndex = currentIndex
exportTypeSelector.text = exportTypeSelectorListView.selectedText
exportTypeSelector.currentIndex = exportTypeSelectorListView.selectedIndex
}
}
}
Expand Down

0 comments on commit ea6f271

Please sign in to comment.