1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 22:19:30 +08:00

Revert "Dependent checkboxes"

This reverts commit 70dc3bae4a.
This commit is contained in:
Andrey Zavadskiy 2016-12-23 23:05:44 +03:00
parent 70dc3bae4a
commit 70c8250021

View File

@ -80,22 +80,11 @@ namespace osu.Game.Overlays.Options.General
private PasswordTextBox password; private PasswordTextBox password;
private APIAccess api; private APIAccess api;
private CheckBoxOption saveUsername;
private CheckBoxOption savePassword;
private void performLogin() private void performLogin()
{ {
if (!string.IsNullOrEmpty(username.Text) && !string.IsNullOrEmpty(password.Text)) if (!string.IsNullOrEmpty(username.Text) && !string.IsNullOrEmpty(password.Text))
api.Login(username.Text, password.Text); api.Login(username.Text, password.Text);
}
private void dependentChecking(CheckBoxOption saveUsername, CheckBoxOption savePassword)
{
if (savePassword.State == CheckBoxState.Checked)
{
saveUsername.State = CheckBoxState.Checked;
}
} }
[BackgroundDependencyLoader(permitNulls: true)] [BackgroundDependencyLoader(permitNulls: true)]
@ -121,12 +110,12 @@ namespace osu.Game.Overlays.Options.General
Height = 20, Height = 20,
RelativeSizeAxes = Axes.X RelativeSizeAxes = Axes.X
}, },
saveUsername = new CheckBoxOption new CheckBoxOption
{ {
LabelText = "Remember Username", LabelText = "Remember Username",
Bindable = config.GetBindable<bool>(OsuConfig.SaveUsername), Bindable = config.GetBindable<bool>(OsuConfig.SaveUsername),
}, },
savePassword = new CheckBoxOption new CheckBoxOption
{ {
LabelText = "Remember Password", LabelText = "Remember Password",
Bindable = config.GetBindable<bool>(OsuConfig.SavePassword), Bindable = config.GetBindable<bool>(OsuConfig.SavePassword),
@ -144,7 +133,6 @@ namespace osu.Game.Overlays.Options.General
//Action = registerLink //Action = registerLink
} }
}; };
dependentChecking(saveUsername, savePassword);
} }
} }
} }