From 3533737c79445e897af1a64a49cfe6b7d37d7147 Mon Sep 17 00:00:00 2001 From: CreepyCrafter24 <33260128+CreepyCrafter24@users.noreply.github.com> Date: Thu, 19 Dec 2019 20:17:46 +0100 Subject: [PATCH] minor improvement --- UpTool2/MainForm.cs | 1 - UpTool2/Program.cs | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/UpTool2/MainForm.cs b/UpTool2/MainForm.cs index d3348c0..5337b77 100644 --- a/UpTool2/MainForm.cs +++ b/UpTool2/MainForm.cs @@ -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"); diff --git a/UpTool2/Program.cs b/UpTool2/Program.cs index 8fcf824..20dcd67 100644 --- a/UpTool2/Program.cs +++ b/UpTool2/Program.cs @@ -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))