aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-12-19 19:18:03 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-12-19 19:18:03 -0500
commit78f8cb259532de5626e90f1e1992bfe6ce0ef089 (patch)
tree12a44678c5c80751fdc2e51cbab1fd232c5dd9a9 /components
parent46227bdad08e191d54e49813ee2f4c0e3c226f95 (diff)
parentb940ad72befacbf330e25bafd0f8134973fb4742 (diff)
downloadmonzero-gui-78f8cb259532de5626e90f1e1992bfe6ce0ef089.tar.gz
monzero-gui-78f8cb259532de5626e90f1e1992bfe6ce0ef089.tar.xz
monzero-gui-78f8cb259532de5626e90f1e1992bfe6ce0ef089.zip
Merge pull request #2576
b940ad7 InputDialog: pre-populate input text (selsta)
Diffstat (limited to 'components')
-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() {