mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 10:33:30 +08:00
Use more correct implementation
This commit is contained in:
parent
a1046f0a86
commit
01f6ab0336
@ -77,12 +77,19 @@ namespace osu.Game.Configuration
|
||||
|
||||
SetDefault(OsuSetting.SavePassword, false).ValueChanged += enabled =>
|
||||
{
|
||||
if (enabled.NewValue) SetValue(OsuSetting.SaveUsername, true);
|
||||
if (enabled.NewValue)
|
||||
SetValue(OsuSetting.SaveUsername, true);
|
||||
else
|
||||
GetBindable<string>(OsuSetting.Token).SetDefault();
|
||||
};
|
||||
|
||||
SetDefault(OsuSetting.SaveUsername, true).ValueChanged += enabled =>
|
||||
{
|
||||
if (!enabled.NewValue) SetValue(OsuSetting.SavePassword, false);
|
||||
if (!enabled.NewValue)
|
||||
{
|
||||
GetBindable<string>(OsuSetting.Username).SetDefault();
|
||||
SetValue(OsuSetting.SavePassword, false);
|
||||
}
|
||||
};
|
||||
|
||||
SetDefault(OsuSetting.ExternalLinkWarning, true);
|
||||
|
Loading…
Reference in New Issue
Block a user