FileDialog: also properly hide/restore popups when opening

This commit is contained in:
ItsLemmy
2025-09-22 12:19:41 -04:00
parent 826dba7f53
commit 5aa935b348
4 changed files with 85 additions and 51 deletions
@@ -38,13 +38,6 @@ ColumnLayout {
}
}
NFilePicker {
id: filePicker
title: "Select a custom icon"
onFileSelected: function (filePath) {
valueCustomIconPath = "file://" + filePath
}
}
RowLayout {
spacing: Style.marginM * scaling
@@ -85,9 +78,15 @@ ColumnLayout {
NIconPicker {
id: iconPicker
initialIcon: valueIcon
onIconSelected: function (iconName) {
onIconSelected: iconName => {
valueIcon = iconName
valueCustomIconPath = ""
}
}
NFilePicker {
id: filePicker
title: "Select a custom icon"
onAccepted: paths => valueCustomIconPath = paths[0]
}
}