mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-04 22:20:24 +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:
parent
3446fc0bbd
commit
dcaadfba21
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue