1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-06-29 09:20:38 +00:00

Fixes IDE not keeping last session window size

Issue usually shows up on macOS, but fix is global, as it's not likely to cause issues in other OSes.
This commit is contained in:
Fellippe Heitor 2020-02-27 22:53:01 -03:00
parent 3446fc0bbd
commit dcaadfba21
2 changed files with 4 additions and 1 deletions

View file

@ -730,7 +730,7 @@ FUNCTION ide2 (ignore)
idedeltxt 'removes temporary strings (typically created by guibox commands) by setting an index to 0
IF idesubwindow <> 0 THEN _RESIZE OFF ELSE _RESIZE ON
IF _RESIZE OR ForceResize THEN
IF (_RESIZE OR ForceResize) AND TIMER - QB64_uptime! > 1.5 THEN
IF idesubwindow <> 0 THEN 'If there's a subwindow up, don't resize as it screws all sorts of things up.
ForceResize = -1
ELSE

View file

@ -41,6 +41,9 @@ IF INSTR(_OS$, "LINUX") THEN UserDefine(1, 2) = "-1" ELSE UserDefine(1, 2) = "0"
IF INSTR(_OS$, "MAC") THEN UserDefine(1, 3) = "-1": UserDefine(1, 4) = "-1" ELSE UserDefine(1, 3) = "0": UserDefine(1, 4) = "0"
IF INSTR(_OS$, "32BIT") THEN UserDefine(1, 5) = "-1": UserDefine(1, 6) = "0" ELSE UserDefine(1, 5) = "0": UserDefine(1, 6) = "-1"
DIM SHARED QB64_uptime!
QB64_uptime! = TIMER
NoInternalFolder:
IF _DIREXISTS("internal") = 0 THEN