mirror of
https://github.com/QB64Official/qb64.git
synced 2024-08-22 03:15:07 +00:00
Makes F5 run detached as default.
Running a compiled program in standard "attached" mode had no real use as it had been planned (as once stated by Galleon) to allow future integration of a debug mode that never came to be. It is not practical as is. This change makes F5 (and consequently the Start option in the Run menu) start the program automatically in "detached" mode (equivalent to Ctrl+F5 in previous versions), which means that the resulting binary will be run with SHELL _DONTWAIT instead of simply SHELL, allowing the newly launched process to be independent from the IDE.
This commit is contained in:
parent
68c765db75
commit
83bea5ad25
1 changed files with 13 additions and 13 deletions
|
@ -284,7 +284,7 @@ FUNCTION ide2 (ignore)
|
||||||
END IF
|
END IF
|
||||||
menu$(m, i) = "-": i = i + 1
|
menu$(m, i) = "-": i = i + 1
|
||||||
|
|
||||||
menu$(m, i) = "Start (#Detached) Ctrl+F5": i = i + 1
|
'menu$(m, i) = "Start (#Detached) Ctrl+F5": i = i + 1
|
||||||
IF os$ = "LNX" THEN
|
IF os$ = "LNX" THEN
|
||||||
menu$(m, i) = "Make E#xecutable Only F11": i = i + 1
|
menu$(m, i) = "Make E#xecutable Only F11": i = i + 1
|
||||||
ELSE
|
ELSE
|
||||||
|
@ -1433,12 +1433,12 @@ FUNCTION ide2 (ignore)
|
||||||
END IF
|
END IF
|
||||||
END IF
|
END IF
|
||||||
|
|
||||||
IF KB = KEY_F5 AND KCTRL THEN 'run detached
|
'IF KB = KEY_F5 AND KCTRL THEN 'run detached
|
||||||
UseAndroid 0
|
' UseAndroid 0
|
||||||
idemdetached:
|
' idemdetached:
|
||||||
iderunmode = 1
|
' iderunmode = 1
|
||||||
GOTO idemrunspecial
|
' GOTO idemrunspecial
|
||||||
END IF
|
'END IF
|
||||||
|
|
||||||
IF KB = KEY_F11 THEN 'make exe only
|
IF KB = KEY_F11 THEN 'make exe only
|
||||||
UseAndroid 0
|
UseAndroid 0
|
||||||
|
@ -1450,7 +1450,7 @@ FUNCTION ide2 (ignore)
|
||||||
IF KB = KEY_F5 THEN 'Note: F5 or SHIFT+F5 accepted
|
IF KB = KEY_F5 THEN 'Note: F5 or SHIFT+F5 accepted
|
||||||
UseAndroid 0
|
UseAndroid 0
|
||||||
idemrun:
|
idemrun:
|
||||||
iderunmode = 0 'standard run
|
iderunmode = 1 'run detached; = 0 'standard run
|
||||||
idemrunspecial:
|
idemrunspecial:
|
||||||
IDECompilationRequested = -1
|
IDECompilationRequested = -1
|
||||||
'run program
|
'run program
|
||||||
|
@ -5215,11 +5215,11 @@ FUNCTION ide2 (ignore)
|
||||||
GOTO idemrun
|
GOTO idemrun
|
||||||
END IF
|
END IF
|
||||||
|
|
||||||
IF menu$(m, s) = "Start (#Detached) Ctrl+F5" THEN
|
'IF menu$(m, s) = "Start (#Detached) Ctrl+F5" THEN
|
||||||
PCOPY 3, 0: SCREEN , , 3, 0: idewait4mous: idewait4alt
|
' PCOPY 3, 0: SCREEN , , 3, 0: idewait4mous: idewait4alt
|
||||||
UseAndroid 0
|
' UseAndroid 0
|
||||||
GOTO idemdetached
|
' GOTO idemdetached
|
||||||
END IF
|
'END IF
|
||||||
|
|
||||||
IF menu$(m, s) = "Make E#XE Only F11" OR menu$(m, s) = "Make E#xecutable Only F11" THEN
|
IF menu$(m, s) = "Make E#XE Only F11" OR menu$(m, s) = "Make E#xecutable Only F11" THEN
|
||||||
PCOPY 3, 0: SCREEN , , 3, 0: idewait4mous: idewait4alt
|
PCOPY 3, 0: SCREEN , , 3, 0: idewait4mous: idewait4alt
|
||||||
|
|
Loading…
Reference in a new issue