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_settings, "Settings");
|
||||||
toolTip.SetToolTip(controls_reload, "Refresh repositories");
|
toolTip.SetToolTip(controls_reload, "Refresh repositories");
|
||||||
toolTip.SetToolTip(controls_upload, "Install package from disk");
|
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(filterBox, "Filter");
|
||||||
toolTip.SetToolTip(action_install, "Install");
|
toolTip.SetToolTip(action_install, "Install");
|
||||||
toolTip.SetToolTip(action_remove, "Remove");
|
toolTip.SetToolTip(action_remove, "Remove");
|
||||||
|
|
|
@ -56,6 +56,7 @@ namespace UpTool2
|
||||||
FixXML(xml);
|
FixXML(xml);
|
||||||
string metaXML = XDocument.Load(xml).Element("meta").Element("UpdateSource").Value;
|
string metaXML = XDocument.Load(xml).Element("meta").Element("UpdateSource").Value;
|
||||||
online = Ping(metaXML);
|
online = Ping(metaXML);
|
||||||
|
#if DEBUG
|
||||||
if (Application.ExecutablePath != GlobalVariables.dir + @"\Install\UpTool2.exe")
|
if (Application.ExecutablePath != GlobalVariables.dir + @"\Install\UpTool2.exe")
|
||||||
{
|
{
|
||||||
if (!online)
|
if (!online)
|
||||||
|
@ -68,6 +69,7 @@ namespace UpTool2
|
||||||
}
|
}
|
||||||
if (!File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.Programs) + "\\UpTool2.lnk"))
|
if (!File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.Programs) + "\\UpTool2.lnk"))
|
||||||
Shortcut.Make(GlobalVariables.dir + @"\Install\UpTool2.exe", 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"))
|
if (!Directory.Exists(GlobalVariables.dir + @"\Apps"))
|
||||||
Directory.CreateDirectory(GlobalVariables.dir + @"\Apps");
|
Directory.CreateDirectory(GlobalVariables.dir + @"\Apps");
|
||||||
if (!online || UpdateCheck(metaXML))
|
if (!online || UpdateCheck(metaXML))
|
||||||
|
|
Reference in New Issue
Block a user