Skip to content

Commit

Permalink
InputDialog: visible override, hide when passwordDIalog is visible
Browse files Browse the repository at this point in the history
  • Loading branch information
xiphon committed Dec 23, 2019
1 parent 1c97e97 commit 9c1f182
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions components/InputDialog.qml
Expand Up @@ -37,7 +37,8 @@ import "../components" as MoneroComponents

Item {
id: root
visible: false
visible: opened
property bool opened: false
property alias labelText: label.text
property alias inputText: input.text

Expand All @@ -49,7 +50,7 @@ Item {
leftPanel.enabled = false
middlePanel.enabled = false
titleBar.state = "essentials"
root.visible = true;
root.opened = true;
input.focus = true;
input.text = prepopulate ? prepopulate : "";
}
Expand All @@ -58,7 +59,7 @@ Item {
leftPanel.enabled = true
middlePanel.enabled = true
titleBar.state = "default"
root.visible = false;
root.opened = false;
}

ColumnLayout {
Expand Down
2 changes: 1 addition & 1 deletion main.qml
Expand Up @@ -1529,7 +1529,7 @@ ApplicationWindow {

InputDialog {
id: inputDialog
visible: false
visible: opened && !passwordDialog.visible
z: parent.z + 1
anchors.fill: parent
property var onAcceptedCallback
Expand Down

0 comments on commit 9c1f182

Please sign in to comment.