From 3824e07ccb7744d916b30ca210e2d186be125cbc Mon Sep 17 00:00:00 2001 From: Kevin Lyles Date: Tue, 17 Nov 2009 01:03:41 -0600 Subject: [PATCH] Added logic to close one window when opening the other --- config.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config.lua b/config.lua index afb100d..238f9a6 100644 --- a/config.lua +++ b/config.lua @@ -4,12 +4,21 @@ end function commandHandler(msg) if msg == "config" then + ww_weights:Hide() + -- TODO: make this work better with the confirmDiscardChanges dialog + if ww_weights:IsShown() then + return + end if ww_config:IsVisible() then ww_config:Hide() else ww_config:Show() end elseif msg == "weights" then + ww_config:Hide() + if ww_config:IsShown() then + return + end if ww_weights:IsVisible() then ww_weights:Hide() else -- 1.7.9.5