From 4a394f160fb13dd45aaa6c9c377fbdf1b446cf2f Mon Sep 17 00:00:00 2001 From: cxl Date: Tue, 3 Jan 2017 16:12:29 +0000 Subject: [PATCH] ide: Instant setup now shows Progress git-svn-id: svn://ultimatepp.org/upp/trunk@10638 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/ide/InstantSetup.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/uppsrc/ide/InstantSetup.cpp b/uppsrc/ide/InstantSetup.cpp index 58597e0da..a4089f5c3 100644 --- a/uppsrc/ide/InstantSetup.cpp +++ b/uppsrc/ide/InstantSetup.cpp @@ -3,6 +3,8 @@ #ifdef PLATFORM_WIN32 struct DirFinder { + Progress pi; + Vector dir; String Get(const String& substring, const char *files); @@ -13,6 +15,8 @@ struct DirFinder { DirFinder::DirFinder() { Index path; + + pi.SetText("Setting up build methods"); for(int i = 0; i < 3; i++) { HKEY key = 0; @@ -30,6 +34,7 @@ DirFinder::DirFinder() break; path.FindAdd(value); + pi.Step(); } RegCloseKey(key); } @@ -49,6 +54,7 @@ String DirFinder::Get(const String& substring, const char *files) Vector versions; Vector fn = Split(files, ';'); for(const auto& d : dir) { + pi.Step(); int p = d.Find(substring); if(p >= 0) { String cp = d;