1
0
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:
Andrey Zavadskiy 2017-01-11 10:28:24 +03:00
parent c0980437a6
commit 63fcfdbbde

View File

@ -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()