ide: Canceling svn setup does not restart theide anymore

git-svn-id: svn://ultimatepp.org/upp/trunk@12302 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-09-24 09:08:20 +00:00
parent e3fb6f8929
commit a6d8f9025a
3 changed files with 8 additions and 6 deletions

View file

@ -1,6 +1,6 @@
#include "ide.h"
void SetupSVNTrunk()
bool SetupSVNTrunk()
{
WithSetupSVNLayout<TopWindow> dlg;
CtrlLayoutOKCancel(dlg, "Checkout U++ trunk");
@ -34,7 +34,7 @@ void SetupSVNTrunk()
String dir, tempdir;
for(;;) {
if(dlg.Run() != IDOK)
return;
return false;
console.Clear();
dir = ~dlg.dir;
tempdir = AppendFileName(GetFileFolder(dir), "temp");
@ -105,4 +105,5 @@ void SetupSVNTrunk()
MakeAssembly(myapps, "MyApps-bazaar");
console.Perform();
return true;
}

View file

@ -1184,6 +1184,6 @@ inline void ShowConsole() { if(TheIde()) ((Ide *)TheIde())->ShowConsole(); }
void InstantSetup();
void SetupSVNTrunk();
bool SetupSVNTrunk();
#endif

View file

@ -390,9 +390,10 @@ void Ide::Setup(Bar& menu)
.Help("Setups/fixes build methods and basic assemblies..");
#endif
menu.Add("Checkout and setup U++ SVN trunk sources..", [=] {
SetupSVNTrunk();
IdeAgain = true;
Break();
if(SetupSVNTrunk()) {
IdeAgain = true;
Break();
}
});
const Workspace& wspc = IdeWorkspace();