Commit 485a9377 authored by Ivaria's avatar Ivaria

Reset combobox model selection after entry deletion

parent e17df0f1
......@@ -412,16 +412,20 @@ function VUHDO_deleteCustomDebuffOnClick(aButton)
if (tIndex ~= nil and #tValue > 0) then
tremove(VUHDO_CONFIG["CUSTOM_DEBUFF"]["STORED"], tIndex);
VUHDO_CONFIG["CUSTOM_DEBUFF"]["STORED_SETTINGS"][tValue] = nil;
VUHDO_CONFIG["CUSTOM_DEBUFF"]["SELECTED"] = "";
VUHDO_Msg("(de)buff " .. tValue .. " removed.", 1, 0.4, 0.4);
else
VUHDO_Msg("(de)buff " .. tValue .. " doesn't exist.", 1, 0.4, 0.4);
end
VUHDO_initCustomDebuffComboModel();
VuhDoNewOptionsDebuffsCustomStorePanelEditBox:SetText("");
VUHDO_customDebuffUpdateEditBox(VuhDoNewOptionsDebuffsCustomStorePanelEditBox);
VuhDoNewOptionsDebuffsCustom:Hide();
VuhDoNewOptionsDebuffsCustom:Show();
VuhDoNewOptionsDebuffsCustomStorePanelEditBox:SetText("");
end
......
......@@ -176,18 +176,20 @@ function VUHDO_deleteSpellTraceOnClick(aButton)
if (tIndex ~= nil and #tValue > 0) then
tremove(VUHDO_CONFIG["SPELL_TRACE"]["STORED"], tIndex);
VUHDO_CONFIG["SPELL_TRACE"]["STORED_SETTINGS"][tValue] = nil;
VUHDO_CONFIG["SPELL_TRACE"]["SELECTED"] = "";
VUHDO_Msg(VUHDO_I18N_SPELL_TRACE .. " on spell \"" .. tValue .. "\" removed.", 1, 0.4, 0.4);
else
VUHDO_Msg(VUHDO_I18N_SPELL_TRACE .. " on spell \"" .. tValue .. "\" doesn't exist.", 1, 0.4, 0.4);
end
VUHDO_initSpellTraceComboModel();
VuhDoNewOptionsGeneralSpellTraceStorePanelEditBox:SetText("");
VUHDO_spellTraceUpdateEditBox(VuhDoNewOptionsGeneralSpellTraceStorePanelEditBox);
VuhDoNewOptionsGeneralSpellTrace:Hide();
VuhDoNewOptionsGeneralSpellTrace:Show();
VuhDoNewOptionsGeneralSpellTraceStorePanelEditBox:SetText("");
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment