This commit is contained in:
CreepyCrafter24 2019-09-10 11:40:04 +02:00
parent f4bb25f94a
commit 75c7e2bec8
2 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,4 @@
ProgressBar for Downloads
Icons
Run apps from UpTool
More apps: cashew, Laptop Sim (wenn fertig)
More apps: cashew, Laptop Sim (when done)
Automate creating packages for apps?

View File

@ -77,7 +77,12 @@ namespace UpTool2
if (runnable)
mainFile = el.Element("MainFile").Value;
Color color = ColorTranslator.FromHtml(el.Element("Color").Value);
Image icon = Image.FromStream(client.OpenRead(el.Element("Icon").Value));
string tmp_imageurl;
if (el.Element("Icon") == null)
tmp_imageurl = "https://raw.githubusercontent.com/CreepyCrafter24/CC-Clicker/master/C_64.ico";
else
tmp_imageurl = el.Element("Icon").Value;
Image icon = Image.FromStream(client.OpenRead(tmp_imageurl));
apps[ID] = new App(name, description, version, file, hash, ID, color, icon, runnable, mainFile);
}
}