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:
parent
c0980437a6
commit
63fcfdbbde
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user