From 5a4e996b3722a4a9ef8f7ee24577fa0bdf0efd77 Mon Sep 17 00:00:00 2001 From: Paul Kulchenko Date: Sat, 30 Mar 2013 11:31:46 -0700 Subject: [PATCH] Updated Stack and Watch window to not refresh when not visible. --- src/editor/debugger.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/editor/debugger.lua b/src/editor/debugger.lua index 2a8c91bd87..5c6665b8cb 100644 --- a/src/editor/debugger.lua +++ b/src/editor/debugger.lua @@ -36,6 +36,7 @@ local function q(s) return s:gsub('([%(%)%.%%%+%-%*%?%[%^%$%]])','%%%1') end local function updateWatchesSync(num) local watchCtrl = debugger.watchCtrl if watchCtrl and debugger.server and not debugger.running + and ide.frame.uimgr:GetPane("watchpanel"):IsShown() and not debugger.scratchpad and not (debugger.options or {}).noeval then for idx = 0, watchCtrl:GetItemCount() - 1 do if not num or idx == num then @@ -78,8 +79,9 @@ end local function updateStackSync() local stackCtrl = debugger.stackCtrl - if stackCtrl and debugger.server - and not debugger.running and not debugger.scratchpad then + if stackCtrl and debugger.server and not debugger.running + and ide.frame.uimgr:GetPane("stackpanel"):IsShown() + and not debugger.scratchpad then local stack, _, err = debugger.stack() if not stack or #stack == 0 then stackCtrl:DeleteAllItems()