mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
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:
parent
e3fb6f8929
commit
a6d8f9025a
3 changed files with 8 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1184,6 +1184,6 @@ inline void ShowConsole() { if(TheIde()) ((Ide *)TheIde())->ShowConsole(); }
|
|||
|
||||
void InstantSetup();
|
||||
|
||||
void SetupSVNTrunk();
|
||||
bool SetupSVNTrunk();
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue