From 9b26cec4441d32cbdcea9199c126d445d2e4700a Mon Sep 17 00:00:00 2001 From: Paul Kulchenko Date: Tue, 18 Nov 2014 19:20:09 -0800 Subject: [PATCH] Updated toolbar UI checks to happen when running/debugging (#352). --- src/editor/commands.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/editor/commands.lua b/src/editor/commands.lua index 407b0d7c08..746fb6745e 100644 --- a/src/editor/commands.lua +++ b/src/editor/commands.lua @@ -1009,8 +1009,9 @@ ide.editorApp:Connect(wx.wxEVT_ACTIVATE_APP, -- save auto-recovery record when making the app inactive if not active then saveAutoRecovery(true) end - -- disable UI refresh when app is inactive - wx.wxUpdateUIEvent.SetUpdateInterval(active and updateInterval or -1) + -- disable UI refresh when app is inactive, but only when not running + wx.wxUpdateUIEvent.SetUpdateInterval( + (active or ide:GetLaunchedProcess()) and updateInterval or -1) PackageEventHandle(active and "onAppFocusSet" or "onAppFocusLost", ide.editorApp) end