From cade46d5459fe9f08ef7052463dcace9942f2a13 Mon Sep 17 00:00:00 2001 From: Fellippe Heitor Date: Thu, 29 Jul 2021 15:08:04 -0300 Subject: [PATCH] Prevents Watch List from showing before compilation ends --- source/ide/ide_methods.bas | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/source/ide/ide_methods.bas b/source/ide/ide_methods.bas index 47825bfe5..f0b09e711 100644 --- a/source/ide/ide_methods.bas +++ b/source/ide/ide_methods.bas @@ -1648,7 +1648,26 @@ FUNCTION ide2 (ignore) END IF IF KB = KEY_F4 THEN 'variable watch - GOTO showWatchList + IF vWatchOn = 0 THEN + result = idemessagebox("Watch List", "Insert $DEBUG metacommand?", "#Yes;#No") + IF result = 1 THEN + ideselect = 0 + ideinsline 1, SCase$("$Debug") + idecy = idecy + 1 + idechangemade = 1 + GOTO ideloop + ELSE + GOTO ideloop + END IF + ELSE + IF idecompiling = 1 THEN + result = idemessagebox("Watch List", "Variable List not yet available.\nWait for the 'OK' message in the status area.", "") + PCOPY 3, 0: SCREEN , , 3, 0 + GOTO ideloop + ELSE + GOTO showWatchList + END IF + END IF END IF IF KB = KEY_F5 THEN 'Note: F5 or SHIFT+F5 accepted