NTextInput: fixing caller onEditingFinished
This commit is contained in:
parent
049ea7c4e6
commit
d0762bea31
6 changed files with 14 additions and 8 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue