Skip to content

Commit cbf618e

Browse files
committed
Fix password checkbox.
Fixes #846
1 parent eebe745 commit cbf618e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

LuaMenu/widgets/chobby/components/battle/battle_list_window.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ function BattleListWindow:init(parent)
7474
boxalign = "left",
7575
boxsize = 20,
7676
caption = " Passworded",
77-
checked = Configuration.battleFilterPassworded2 or false,
77+
checked = Configuration.battleFilterPassworded3 or false,
7878
objectOverrideFont = Configuration:GetFont(2),
7979
OnChange = {
8080
function (obj, newState)
81-
Configuration:SetConfigValue("battleFilterPassworded2", newState)
81+
Configuration:SetConfigValue("battleFilterPassworded3", newState)
8282
SoftUpdate()
8383
end
8484
},
@@ -122,7 +122,7 @@ function BattleListWindow:init(parent)
122122
}
123123

124124
local function UpdateCheckboxes()
125-
checkPassworded:SetToggle(Configuration.battleFilterPassworded2)
125+
checkPassworded:SetToggle(Configuration.battleFilterPassworded3)
126126
checkNonFriend:SetToggle(Configuration.battleFilterNonFriend)
127127
checkRunning:SetToggle(Configuration.battleFilterRunning)
128128
end
@@ -593,7 +593,7 @@ function BattleListWindow:ItemInFilter(id)
593593
end
594594
end
595595
if not lobby:GetBattleHasFriend(id) then
596-
if Configuration.battleFilterPassworded2 and battle.passworded then
596+
if Configuration.battleFilterPassworded3 and battle.passworded then
597597
return false
598598
end
599599
if Configuration.battleFilterNonFriend then

0 commit comments

Comments
 (0)