1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 17:02:57 +08:00

Tidy up variable naming and layout

This commit is contained in:
Dean Herbert 2022-06-09 12:32:30 +09:00
parent eb33922417
commit 3799689c7d

View File

@ -31,7 +31,7 @@ namespace osu.Desktop
private IBindable<APIUser> user;
[Resolved]
private IAPIProvider provider { get; set; }
private IAPIProvider api { get; set; }
private readonly IBindable<UserStatus> status = new Bindable<UserStatus>();
private readonly IBindable<UserActivity> activity = new Bindable<UserActivity>();
@ -60,7 +60,8 @@ namespace osu.Desktop
config.BindWith(OsuSetting.DiscordRichPresence, privacyMode);
(user = provider.LocalUser.GetBoundCopy()).BindValueChanged(u =>
user = api.LocalUser.GetBoundCopy();
user.BindValueChanged(u =>
{
status.UnbindBindings();
status.BindTo(u.NewValue.Status);