Archive: fix file dialog bug when extract zip content

This commit is contained in:
DanyLE
2023-03-31 14:47:51 +02:00
parent 7292d2ef21
commit 545f630b0e
8 changed files with 13 additions and 7 deletions

View File

@ -20,7 +20,7 @@ class Archive extends this.OS.application.BaseApplication
item = @filetree.selectedItem
return @notify __("Please select file/folder to extract") unless item
treedata = item.data
@openDialog "FileDialog", { title: __("Select a folder"), mimes: ["dir"] }
@openDialog "FileDialog", { title: __("Select a folder"), type: "dir" }
.then (d) =>
@xtract(treedata, d.file.path)
.then () => @notify __("extract successful: {0}", treedata.path)