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.color: Colors.backgroundTertiary
|
||||||
border.width: Math.max(1, Style.borderMedium * scaling)
|
border.width: Math.max(1, Style.borderMedium * scaling)
|
||||||
layer.enabled: true
|
layer.enabled: true
|
||||||
width: (screen.width/2) * scaling
|
width: (screen.width / 2) * scaling
|
||||||
height: (screen.height/2) * scaling
|
height: (screen.height / 2) * scaling
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,9 @@ Item {
|
||||||
text: Settings.data.general.avatarImage
|
text: Settings.data.general.avatarImage
|
||||||
placeholderText: "/home/user/.face"
|
placeholderText: "/home/user/.face"
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
onEditingFinished: Settings.data.general.avatarImage = text
|
onEditingFinished: function () {
|
||||||
|
Settings.data.general.avatarImage = text
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,9 @@ Item {
|
||||||
NTextInput {
|
NTextInput {
|
||||||
text: Settings.data.screenRecorder.directory
|
text: Settings.data.screenRecorder.directory
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
onEditingFinished: Settings.data.screenRecorder.directory = text
|
onEditingFinished: function () {
|
||||||
|
Settings.data.screenRecorder.directory = text
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Frame Rate
|
// Frame Rate
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,9 @@ Item {
|
||||||
NTextInput {
|
NTextInput {
|
||||||
text: Settings.data.location.name
|
text: Settings.data.location.name
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
onEditingFinished: Settings.data.location.name = text
|
onEditingFinished: function () {
|
||||||
|
Settings.data.location.name = text
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,9 @@ Item {
|
||||||
NTextInput {
|
NTextInput {
|
||||||
text: Settings.data.wallpaper.directory
|
text: Settings.data.wallpaper.directory
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
onEditingFinished: Settings.data.wallpaper.directory = text
|
onEditingFinished: function () {
|
||||||
|
Settings.data.wallpaper.directory = text
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
NDivider {
|
NDivider {
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,6 @@ Singleton {
|
||||||
property string transitionType: Settings.data.wallpaper.swww.transitionType
|
property string transitionType: Settings.data.wallpaper.swww.transitionType
|
||||||
property var randomChoices: ["fade", "left", "right", "top", "bottom", "wipe", "wave", "grow", "center", "any", "outer"]
|
property var randomChoices: ["fade", "left", "right", "top", "bottom", "wipe", "wave", "grow", "center", "any", "outer"]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function loadWallpapers() {
|
function loadWallpapers() {
|
||||||
scanning = true
|
scanning = true
|
||||||
wallpaperList = []
|
wallpaperList = []
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue