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,8 +80,6 @@ namespace osu.Game.Overlays.Options.General
private PasswordTextBox password;
private APIAccess api;
private CheckBoxOption saveUsername;
private CheckBoxOption savePassword;
private void performLogin()
{
@ -89,15 +87,6 @@ namespace osu.Game.Overlays.Options.General
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)]
private void load(APIAccess api, OsuConfigManager config)
{
@ -121,12 +110,12 @@ namespace osu.Game.Overlays.Options.General
Height = 20,
RelativeSizeAxes = Axes.X
},
saveUsername = new CheckBoxOption
new CheckBoxOption
{
LabelText = "Remember Username",
Bindable = config.GetBindable<bool>(OsuConfig.SaveUsername),
},
savePassword = new CheckBoxOption
new CheckBoxOption
{
LabelText = "Remember Password",
Bindable = config.GetBindable<bool>(OsuConfig.SavePassword),
@ -144,7 +133,6 @@ namespace osu.Game.Overlays.Options.General
//Action = registerLink
}
};
dependentChecking(saveUsername, savePassword);
}
}
}