InputDialog: pre-populate input text

This commit is contained in:
selsta
2019-12-09 00:44:39 +01:00
parent f03ea0461c
commit b940ad72be
5 changed files with 8 additions and 14 deletions

View File

@@ -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() {