NTextInput: fixing caller onEditingFinished

This commit is contained in:
quadbyte 2025-08-12 08:13:54 -04:00
parent 049ea7c4e6
commit d0762bea31
6 changed files with 14 additions and 8 deletions

View file

@ -70,8 +70,8 @@ NLoader {
border.color: Colors.backgroundTertiary
border.width: Math.max(1, Style.borderMedium * scaling)
layer.enabled: true
width: (screen.width/2) * scaling
height: (screen.height/2) * scaling
width: (screen.width / 2) * scaling
height: (screen.height / 2) * scaling
anchors.centerIn: parent
MouseArea {

View file

@ -59,7 +59,9 @@ Item {
text: Settings.data.general.avatarImage
placeholderText: "/home/user/.face"
Layout.fillWidth: true
onEditingFinished: Settings.data.general.avatarImage = text
onEditingFinished: function () {
Settings.data.general.avatarImage = text
}
}
}
}

View file

@ -34,7 +34,9 @@ Item {
NTextInput {
text: Settings.data.screenRecorder.directory
Layout.fillWidth: true
onEditingFinished: Settings.data.screenRecorder.directory = text
onEditingFinished: function () {
Settings.data.screenRecorder.directory = text
}
}
// Frame Rate

View file

@ -62,7 +62,9 @@ Item {
NTextInput {
text: Settings.data.location.name
Layout.fillWidth: true
onEditingFinished: Settings.data.location.name = text
onEditingFinished: function () {
Settings.data.location.name = text
}
}
NText {

View file

@ -35,7 +35,9 @@ Item {
NTextInput {
text: Settings.data.wallpaper.directory
Layout.fillWidth: true
onEditingFinished: Settings.data.wallpaper.directory = text
onEditingFinished: function () {
Settings.data.wallpaper.directory = text
}
}
NDivider {