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

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

View file

@ -22,8 +22,6 @@ Singleton {
property string transitionType: Settings.data.wallpaper.swww.transitionType
property var randomChoices: ["fade", "left", "right", "top", "bottom", "wipe", "wave", "grow", "center", "any", "outer"]
function loadWallpapers() {
scanning = true
wallpaperList = []