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:
parent
eb33922417
commit
3799689c7d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user