From 05ab17d3da46d5898cdb73b0d55051095c211a0e Mon Sep 17 00:00:00 2001 From: Steven Hugg Date: Tue, 17 Aug 2021 20:01:43 -0500 Subject: [PATCH] ui: don't print alert if lose visibility before compile --- src/ide/ui.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ide/ui.ts b/src/ide/ui.ts index 4b301843..d306b65d 100644 --- a/src/ide/ui.ts +++ b/src/ide/ui.ts @@ -1475,13 +1475,13 @@ function _pause() { } function pause() { + if (!checkRunReady()) return; clearBreakpoint(); _pause(); userPaused = true; } function _resume() { - if (!checkRunReady()) return; if (!platform.isRunning()) { platform.resume(); console.log("Resumed"); @@ -1491,6 +1491,7 @@ function _resume() { } function resume() { + if (!checkRunReady()) return; clearBreakpoint(); if (! platform.isRunning() ) { projectWindows.refresh(false);