diff --git a/release/antos-1.2.1.tar.gz b/release/antos-1.2.1.tar.gz index af7377c..e858a38 100644 Binary files a/release/antos-1.2.1.tar.gz and b/release/antos-1.2.1.tar.gz differ diff --git a/src/core/tags/FileViewTag.ts b/src/core/tags/FileViewTag.ts index 7188609..640398e 100644 --- a/src/core/tags/FileViewTag.ts +++ b/src/core/tags/FileViewTag.ts @@ -388,7 +388,8 @@ namespace OS { if (v.filename[0] === "." && !this.showhidden) { return; } - v.text = v.filename; + if(!v.text) + v.text = v.filename; if (v.text.length > 10) { v.text = v.text.substring(0, 9) + "..."; } @@ -412,7 +413,8 @@ namespace OS { if (v.filename[0] === "." && !this.showhidden) { return; } - v.text = v.filename; + if(!v.text) + v.text = v.filename; v.iconclass = v.iconclass ? v.iconclass : v.type; const row = [ v, @@ -467,7 +469,8 @@ namespace OS { if (v.filename[0] === "." && !this.showhidden) { return undefined; } - v.text = v.filename; + if(!v.text) + v.text = v.filename; if (v.type === "dir") { v.nodes = []; v.open = false; diff --git a/src/core/vfs.ts b/src/core/vfs.ts index 52b6ba7..329263e 100644 --- a/src/core/vfs.ts +++ b/src/core/vfs.ts @@ -1356,11 +1356,17 @@ namespace OS { constructor(path: string) { super(path); if (this.basename) { - let v: any = OS.setting.system.packages[this.basename]; - v.type = "app"; - v.mime = "antos/app"; - v.size = 0; - this.info = v as FileInfoType; + let v = OS.setting.system.packages[this.basename]; + this.info = {} as FileInfoType; + for(const p in v) + { + this.info[p] = v[p]; + } + + this.info.type = "app"; + this.info.mime = "antos/app"; + this.info.size = 0; + this.info.text = v.name; } this.ready = true; }