Skip to content

Commit b2bf928

Browse files
committed
The reset color button goes back to normal after reseting
1 parent 885fc00 commit b2bf928

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ChatNotif/Options.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function OptionsControl()
141141

142142
local count = 0;
143143
resetColorsButton.Click = function(sender, args)
144-
count = count + 1;
144+
count = (count + 1) % 2;
145145

146146
if count == 1 then
147147
resetColorsButton:SetText("Sure? Clic again to reset colors");
@@ -150,6 +150,7 @@ function OptionsControl()
150150
for name, channelCheckbox in pairs(channelsCheckbox) do
151151
channelCheckbox:SetForeColor(SETTINGS.DEFAULT_COLOR);
152152
end
153+
resetColorsButton:SetText("Clic to reset colors");
153154
end
154155
end
155156

0 commit comments

Comments
 (0)