Skip to content

Commit

Permalink
Fix bug - window closed after exit from IBController with /INLINE
Browse files Browse the repository at this point in the history
  • Loading branch information
rlktradewright committed Feb 12, 2018
1 parent 5dea2da commit 2c0474a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions resources/IBControllerGatewayStart.bat
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,10 @@ if /I "%HIDE%" == "YES" (
)

if /I "%~1" == "/INLINE" (
set INLINE=1
"%IBC_PATH%\Scripts\DisplayBannerAndLaunch.bat"
) else (
set INLINE=0
start "%TITLE%" %MIN% "%IBC_PATH%\Scripts\DisplayBannerAndLaunch.bat"
)
exit /B
3 changes: 3 additions & 0 deletions resources/IBControllerStart.bat
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ if /I "%HIDE%" == "YES" (
)

if /I "%~1" == "/INLINE" (
set INLINE=1
"%IBC_PATH%\Scripts\DisplayBannerAndLaunch.bat"
) else (
set INLINE=0
start "%TITLE%" %MIN% "%IBC_PATH%\Scripts\DisplayBannerAndLaunch.bat"
)
exit /B
4 changes: 3 additions & 1 deletion resources/Scripts/DisplayBannerAndLaunch.bat
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ if defined LOG_PATH (

echo +
echo + ** Caution: closing this window will close %APP% %TWS_MAJOR_VRSN% **
echo + (window will close automatically when you exit from %APP% %TWS_MAJOR_VRSN%)
if "%INLINE%" == "0" echo + (window will close automatically when you exit from %APP% %TWS_MAJOR_VRSN%)
echo +

:: now launch IBController
Expand All @@ -96,6 +96,7 @@ if defined LOG_PATH (
)

color
if "%INLINE%" == "1" exit /B
exit

:err
Expand Down Expand Up @@ -133,4 +134,5 @@ echo +
echo + Press any key to close this window
pause > NUL
echo +
if "%INLINE%" == "1" exit /B
exit

0 comments on commit 2c0474a

Please sign in to comment.