1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 15:12:57 +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() private void eventPassword()
{ {
if (savePassword.State == CheckBoxState.Checked) if ((savePassword.State == CheckBoxState.Checked) && (saveUsername.State == CheckBoxState.Unchecked))
{
if(saveUsername.State == CheckBoxState.Unchecked)
saveUsername.State = CheckBoxState.Checked; saveUsername.State = CheckBoxState.Checked;
}
} }
private void eventUsername() private void eventUsername()
{ {
if (savePassword.State == CheckBoxState.Checked) if ((saveUsername.State == CheckBoxState.Unchecked) && (savePassword.State == CheckBoxState.Checked))
{
if(saveUsername.State == CheckBoxState.Unchecked)
savePassword.State = CheckBoxState.Unchecked; savePassword.State = CheckBoxState.Unchecked;
}
} }
private void performLogin() private void performLogin()