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))