mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:17:26 +08:00
Fixed checkboxes state and better code
This commit is contained in:
parent
c0980437a6
commit
63fcfdbbde
@ -82,19 +82,13 @@ namespace osu.Game.Overlays.Options.General
|
||||
|
||||
private void eventPassword()
|
||||
{
|
||||
if (savePassword.State == CheckBoxState.Checked)
|
||||
{
|
||||
if(saveUsername.State == CheckBoxState.Unchecked)
|
||||
if ((savePassword.State == CheckBoxState.Checked) && (saveUsername.State == CheckBoxState.Unchecked))
|
||||
saveUsername.State = CheckBoxState.Checked;
|
||||
}
|
||||
}
|
||||
private void eventUsername()
|
||||
{
|
||||
if (savePassword.State == CheckBoxState.Checked)
|
||||
{
|
||||
if(saveUsername.State == CheckBoxState.Unchecked)
|
||||
if ((saveUsername.State == CheckBoxState.Unchecked) && (savePassword.State == CheckBoxState.Checked))
|
||||
savePassword.State = CheckBoxState.Unchecked;
|
||||
}
|
||||
}
|
||||
|
||||
private void performLogin()
|
||||
|
Loading…
Reference in New Issue
Block a user