diff --git a/Tesses.YouTubeDownloader/src/YouTubeDownloader.tcross b/Tesses.YouTubeDownloader/src/YouTubeDownloader.tcross index c5fd327..f5ce425 100644 --- a/Tesses.YouTubeDownloader/src/YouTubeDownloader.tcross +++ b/Tesses.YouTubeDownloader/src/YouTubeDownloader.tcross @@ -775,7 +775,7 @@ class TYTD.Downloader { _pkg.pluginName = TypeOf(info.short_name) == "String" ? info.short_name : name; var reso = _exec.Resources; var ico = _exec.Icon; - _pkg.pluginIcon = ico >= 0 && i < reso.Count ? reso[ico] : embed("package_icon.png"); + _pkg.pluginIcon = TypeOf(ico) == "ByteArray" ? ico : embed("package_icon.png"); subdir.CreateDirectory(/"Files"); var d = { TYTD = {