mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-13 11:56:32 +02:00
Merge pull request #365
c2a57f7
Transfer: print mixin when moving privacy level widget around (moneromooo.monero)
This commit is contained in:
commit
b02751344a
@ -69,6 +69,14 @@ Rectangle {
|
|||||||
oaPopup.open()
|
oaPopup.open()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function updateMixin() {
|
||||||
|
var fillLevel = privacyLevelItem.fillLevel
|
||||||
|
var mixin = scaleValueToMixinCount(fillLevel)
|
||||||
|
print ("PrivacyLevel changed:" + fillLevel)
|
||||||
|
print ("mixin count: " + mixin)
|
||||||
|
privacyLabel.text = qsTr("Privacy level (mixin %1)").arg(mixin) + translationManager.emptyString
|
||||||
|
}
|
||||||
|
|
||||||
// Information dialog
|
// Information dialog
|
||||||
StandardDialog {
|
StandardDialog {
|
||||||
// dynamically change onclose handler
|
// dynamically change onclose handler
|
||||||
@ -188,7 +196,7 @@ Rectangle {
|
|||||||
anchors.rightMargin: 17
|
anchors.rightMargin: 17
|
||||||
anchors.topMargin: 30
|
anchors.topMargin: 30
|
||||||
fontSize: 14
|
fontSize: 14
|
||||||
text: qsTr("Privacy level") + translationManager.emptyString
|
text: ""
|
||||||
}
|
}
|
||||||
|
|
||||||
PrivacyLevel {
|
PrivacyLevel {
|
||||||
@ -199,10 +207,7 @@ Rectangle {
|
|||||||
anchors.leftMargin: 17
|
anchors.leftMargin: 17
|
||||||
anchors.rightMargin: 17
|
anchors.rightMargin: 17
|
||||||
anchors.topMargin: 5
|
anchors.topMargin: 5
|
||||||
onFillLevelChanged: {
|
onFillLevelChanged: updateMixin()
|
||||||
print ("PrivacyLevel changed:" + fillLevel)
|
|
||||||
print ("mixin count:" + scaleValueToMixinCount(fillLevel))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -440,6 +445,7 @@ Rectangle {
|
|||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
//Disable password page until enabled by updateStatus
|
//Disable password page until enabled by updateStatus
|
||||||
pageRoot.enabled = false
|
pageRoot.enabled = false
|
||||||
|
updateMixin()
|
||||||
}
|
}
|
||||||
|
|
||||||
// fires on every page load
|
// fires on every page load
|
||||||
|
Loading…
Reference in New Issue
Block a user