mirror of
https://github.com/ppy/osu
synced 2025-01-05 21:59:46 +00:00
Use provided parameters to avoid a second lookup.
This commit is contained in:
parent
691742b828
commit
a036b059e8
@ -24,14 +24,14 @@ namespace osu.Game.Configuration
|
|||||||
Set(OsuConfig.Username, string.Empty);
|
Set(OsuConfig.Username, string.Empty);
|
||||||
Set(OsuConfig.Token, string.Empty);
|
Set(OsuConfig.Token, string.Empty);
|
||||||
|
|
||||||
Set(OsuConfig.SavePassword, false).ValueChanged += delegate
|
Set(OsuConfig.SavePassword, false).ValueChanged += val =>
|
||||||
{
|
{
|
||||||
if (Get<bool>(OsuConfig.SavePassword)) Set(OsuConfig.SaveUsername, true);
|
if (val) Set(OsuConfig.SaveUsername, true);
|
||||||
};
|
};
|
||||||
|
|
||||||
Set(OsuConfig.SaveUsername, true).ValueChanged += delegate
|
Set(OsuConfig.SaveUsername, true).ValueChanged += val =>
|
||||||
{
|
{
|
||||||
if (!Get<bool>(OsuConfig.SaveUsername)) Set(OsuConfig.SavePassword, false);
|
if (!val) Set(OsuConfig.SavePassword, false);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Audio
|
// Audio
|
||||||
|
Loading…
Reference in New Issue
Block a user