qml: add logging of instance around SwapDialog create/destroy and swap trigger
This commit is contained in:
@@ -155,7 +155,10 @@ Pane {
|
||||
Component {
|
||||
id: swapDialog
|
||||
SwapDialog {
|
||||
onClosed: destroy()
|
||||
onClosed: {
|
||||
console.log('Destroying SwapDialog ' + this)
|
||||
destroy()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -243,7 +243,10 @@ ElDialog {
|
||||
text: qsTr('Ok')
|
||||
icon.source: Qt.resolvedUrl('../../icons/confirmed.png')
|
||||
enabled: swaphelper.valid
|
||||
onClicked: swaphelper.executeSwap()
|
||||
onClicked: {
|
||||
console.log('Swap triggered from dialog ' + this + ' using swaphelper ' + swaphelper)
|
||||
swaphelper.executeSwap()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -258,6 +261,7 @@ ElDialog {
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
console.log('Created SwapDialog ' + this)
|
||||
swapslider.value = swaphelper.sliderPos
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user