diff options
| author | moneromooo.monero <moneromooo.monero@users.noreply.github.com> | 2016-12-27 20:53:17 +0000 |
|---|---|---|
| committer | moneromooo.monero <moneromooo.monero@users.noreply.github.com> | 2016-12-27 20:53:17 +0000 |
| commit | c2a57f704be9dd868fd7128946622972ac597169 (patch) | |
| tree | 011f077e6d69c841587d76662dcd11dd9f02db94 | |
| parent | d8f9e7360fdbab910283c465aafe36149b1d7f26 (diff) | |
| download | monzero-gui-c2a57f704be9dd868fd7128946622972ac597169.tar.gz monzero-gui-c2a57f704be9dd868fd7128946622972ac597169.tar.xz monzero-gui-c2a57f704be9dd868fd7128946622972ac597169.zip | |
Transfer: print mixin when moving privacy level widget around
| -rw-r--r-- | pages/Transfer.qml | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/pages/Transfer.qml b/pages/Transfer.qml index 8e070246..5d04f457 100644 --- a/pages/Transfer.qml +++ b/pages/Transfer.qml @@ -69,6 +69,14 @@ Rectangle { 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 StandardDialog { // dynamically change onclose handler @@ -188,7 +196,7 @@ Rectangle { anchors.rightMargin: 17 anchors.topMargin: 30 fontSize: 14 - text: qsTr("Privacy level") + translationManager.emptyString + text: "" } PrivacyLevel { @@ -199,10 +207,7 @@ Rectangle { anchors.leftMargin: 17 anchors.rightMargin: 17 anchors.topMargin: 5 - onFillLevelChanged: { - print ("PrivacyLevel changed:" + fillLevel) - print ("mixin count:" + scaleValueToMixinCount(fillLevel)) - } + onFillLevelChanged: updateMixin() } @@ -440,6 +445,7 @@ Rectangle { Component.onCompleted: { //Disable password page until enabled by updateStatus pageRoot.enabled = false + updateMixin() } // fires on every page load |
