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

@ -9,7 +9,10 @@ Small application for zip file manager
## Changle log ## Changle log
### v0.0.2-a ### v0.0.4-a
* Fix file dialog bug when extract zip content
### v0.0.3-a
* Change category to utility * Change category to utility
### v0.0.2-a ### v0.0.2-a

View File

@ -9,7 +9,10 @@ Small application for zip file manager
## Changle log ## Changle log
### v0.0.2-a ### v0.0.4-a
* Fix file dialog bug when extract zip content
### v0.0.3-a
* Change category to utility * Change category to utility
### v0.0.2-a ### v0.0.2-a

File diff suppressed because one or more lines are too long

View File

@ -7,7 +7,7 @@
"author": "Xuan Sang LE", "author": "Xuan Sang LE",
"email": "mrsang@lxsang.me" "email": "mrsang@lxsang.me"
}, },
"version":"0.0.3-a", "version":"0.0.4-a",
"category":"Utility", "category":"Utility",
"iconclass":"fa fa-archive", "iconclass":"fa fa-archive",
"mimes":["application/zip"], "mimes":["application/zip"],

Binary file not shown.

View File

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

View File

@ -7,7 +7,7 @@
"author": "Xuan Sang LE", "author": "Xuan Sang LE",
"email": "mrsang@lxsang.me" "email": "mrsang@lxsang.me"
}, },
"version":"0.0.3-a", "version":"0.0.4-a",
"category":"Utility", "category":"Utility",
"iconclass":"fa fa-archive", "iconclass":"fa fa-archive",
"mimes":["application/zip"], "mimes":["application/zip"],

View File

@ -85,7 +85,7 @@
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/Archive/README.md", "description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/Archive/README.md",
"category": "Utility", "category": "Utility",
"author": "Xuan Sang LE", "author": "Xuan Sang LE",
"version": "0.0.3-a", "version": "0.0.4-a",
"dependencies": [], "dependencies": [],
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/Archive/build/release/Archive.zip" "download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/Archive/build/release/Archive.zip"
}, },