minor improvement
This commit is contained in:
parent
58673b587b
commit
3533737c79
@ -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");
|
||||
|
@ -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))
|
||||
|
Reference in New Issue
Block a user