Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
VuhDo
VuhDo
Commits
485a9377
Commit
485a9377
authored
Jul 17, 2021
by
Ivaria
Browse files
Reset combobox model selection after entry deletion
parent
e17df0f1
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
VuhDoOptions/VuhDoNewOptionsDebuffsCustom.lua
VuhDoOptions/VuhDoNewOptionsDebuffsCustom.lua
+5
-1
VuhDoOptions/VuhDoNewOptionsGeneralSpellTrace.lua
VuhDoOptions/VuhDoNewOptionsGeneralSpellTrace.lua
+4
-2
No files found.
VuhDoOptions/VuhDoNewOptionsDebuffsCustom.lua
View file @
485a9377
...
...
@@ -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
...
...
VuhDoOptions/VuhDoNewOptionsGeneralSpellTrace.lua
View file @
485a9377
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment