修复密码框里有东西的时候如果密码框是隐藏的还会视为填了密码

This commit is contained in:
MrZ_26
2023-05-19 00:32:03 +08:00
parent 9dda8555a0
commit 5e7c2309ac

View File

@@ -86,7 +86,7 @@ function scene.keyDown(key)
local R=roomList:getSel()
if R and not TASK.getLock('fetchRoom') then
if R.info.version==VERSION.room then
NET.room_enter(R.roomId,passwordBox.value)
NET.room_enter(R.roomId,not _hidePW() and passwordBox.value or nil)
else
MES.new('error',text.versionNotMatch)
end