Keep the current weight selected after restoring default weights
Kevin Lyles [10-29-09 - 18:49]
Keep the current weight selected after restoring default weights
diff --git a/config.lua b/config.lua
index 925c8d7..1ad74df 100644
--- a/config.lua
+++ b/config.lua
@@ -25,7 +25,9 @@ StaticPopupDialogs["WW_CONFIRM_RESTORE_DEFAULTS"] = {
setWeight(class, weight, defaultVars.weightsList[class][weight])
end
end
- ww_config.rightPanel:Hide()
+ if ww_config.rightPanel:IsShown() then
+ configSelectWeight(ww_config.rightPanel.weightFrame)
+ end
end,
showAlert = true,
timeout = 0,