minor improvement

This commit is contained in:
CreepyCrafter24 2019-12-19 20:17:46 +01:00
parent 58673b587b
commit 3533737c79
2 changed files with 2 additions and 1 deletions

View File

@ -98,7 +98,6 @@ namespace UpTool2
toolTip.SetToolTip(controls_settings, "Settings");
toolTip.SetToolTip(controls_reload, "Refresh repositories");
toolTip.SetToolTip(controls_upload, "Install package from disk");
searchBox.Size = (Application.ExecutablePath != GlobalVariables.dir + @"\UpTool2.exe") ? new Size(233, 20) : new Size(262, 20);
toolTip.SetToolTip(filterBox, "Filter");
toolTip.SetToolTip(action_install, "Install");
toolTip.SetToolTip(action_remove, "Remove");

View File

@ -56,6 +56,7 @@ namespace UpTool2
FixXML(xml);
string metaXML = XDocument.Load(xml).Element("meta").Element("UpdateSource").Value;
online = Ping(metaXML);
#if DEBUG
if (Application.ExecutablePath != GlobalVariables.dir + @"\Install\UpTool2.exe")
{
if (!online)
@ -68,6 +69,7 @@ namespace UpTool2
}
if (!File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.Programs) + "\\UpTool2.lnk"))
Shortcut.Make(GlobalVariables.dir + @"\Install\UpTool2.exe", Environment.GetFolderPath(Environment.SpecialFolder.Programs) + "\\UpTool2.lnk");
#endif
if (!Directory.Exists(GlobalVariables.dir + @"\Apps"))
Directory.CreateDirectory(GlobalVariables.dir + @"\Apps");
if (!online || UpdateCheck(metaXML))