Skip to content

Commit

Permalink
fix: file dialog cannot pop up
Browse files Browse the repository at this point in the history
Log: file dialog cannot pop up
Signed-off-by: zorowk <[email protected]>
  • Loading branch information
zorowk authored and justforlxz committed Jan 16, 2024
1 parent 7c9dbfa commit 04b835b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/treeland/treeland-wallpaper/WallpaperSetting.qml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ Item {

FileDialog {
id: fileDialog
title: "Please choose a file"
options: FileDialog.DontUseNativeDialog
title: qsTr("Please choose a file")

onAccepted: {
personalization.addWallpaper(fileDialog.selectedFile);
Expand All @@ -131,7 +132,7 @@ Item {

Button {
id: add_directory
text: "Add Directory"
text: qsTr("Add Directory")
visible: false
Layout.preferredWidth: (parent.width - parent.spacing) / 2
Layout.alignment: Qt.AlignRight
Expand Down

0 comments on commit 04b835b

Please sign in to comment.