aboutsummaryrefslogtreecommitdiff
path: root/components/InputDialog.qml
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2019-12-09 00:44:39 +0100
committerselsta <selsta@sent.at>2019-12-09 17:38:09 +0100
commitb940ad72befacbf330e25bafd0f8134973fb4742 (patch)
treebf03cc23514f2673c6948b91de89d0d73ec4f473 /components/InputDialog.qml
parentf03ea0461c3a9ae897e44af64ac6caf2cc92b9c9 (diff)
downloadmonzero-gui-b940ad72befacbf330e25bafd0f8134973fb4742.tar.gz
monzero-gui-b940ad72befacbf330e25bafd0f8134973fb4742.tar.xz
monzero-gui-b940ad72befacbf330e25bafd0f8134973fb4742.zip
InputDialog: pre-populate input text
Diffstat (limited to 'components/InputDialog.qml')
-rw-r--r--components/InputDialog.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/InputDialog.qml b/components/InputDialog.qml
index c5963f04..2a69e79f 100644
--- a/components/InputDialog.qml
+++ b/components/InputDialog.qml
@@ -45,14 +45,14 @@ Item {
signal accepted()
signal rejected()
- function open() {
+ function open(prepopulate) {
inactiveOverlay.visible = true
leftPanel.enabled = false
middlePanel.enabled = false
titleBar.state = "essentials"
root.visible = true;
input.focus = true;
- input.text = "";
+ input.text = prepopulate ? prepopulate : "";
}
function close() {