Ide: Minor fixes related to upgrade ide option.

git-svn-id: svn://ultimatepp.org/upp/trunk@12364 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
klugier 2018-10-13 18:51:23 +00:00
parent 637742b9b7
commit 2bb6af2a15
2 changed files with 3 additions and 2 deletions

View file

@ -5,7 +5,7 @@ void Ide::UpgradeTheIDE()
String idepath = GetExeFilePath();
String newpath = idepath + ".new";
String bakpath(~idepath, GetFileExtPos(idepath));
bakpath << ".bak.exe";
bakpath << ".bak" << GetExeExt();
int tbak = targetmode;
String tmbak = StoreAsString(release);

View file

@ -389,6 +389,7 @@ void Ide::Setup(Bar& menu)
menu.Add("Automatic build methods setup..", callback(InstantSetup))
.Help("Setups/fixes build methods and basic assemblies..");
#endif
menu.MenuSeparator();
menu.Add("Checkout and setup U++ SVN trunk sources..", [=] {
if(SetupSVNTrunk()) {
IdeAgain = true;
@ -400,7 +401,7 @@ void Ide::Setup(Bar& menu)
if(wspc[0] == "ide")
for(int i = 0; i < wspc.GetCount(); i++)
if(wspc[i] == "ide/Core")
menu.Add("Upgrade theide..", [=] { UpgradeTheIDE(); });
menu.Add("Upgrade TheIDE..", [=] { UpgradeTheIDE(); });
if(menu.IsMenuBar())
SetupMobilePlatforms(menu);