Fix downloader bug, use plink and add icon to plugin template

This commit is contained in:
2025-12-28 14:25:16 -06:00
parent 1ab1c11582
commit 478451034f

View File

@@ -816,7 +816,7 @@ class TYTD.Downloader {
{
var path = /"plugin"/_pkg.pluginName;
this.Servers.Mount(path,_pkg.pluginObject.Server);
this.Servers.Mount(path.ToString(),_pkg.pluginObject.Server);
}
_pkg.pluginEnv = env;
@@ -838,10 +838,10 @@ class TYTD.Downloader {
var pkg2 = {name,version};
func _close()
{
if(pkg2.pluginObject.Server != null && pkg2.pluginObject.Server != undefined)
if(TypeIsDefined(pkg2.pluginObject.Server))
{
var path = /"plugin"/pkg2.pluginName;
this.Servers.Unmount(path);
this.Servers.Unmount(path.ToString());
}
pkg2.pluginObject.Close();