mirror of
https://github.com/osukey/osukey.git
synced 2025-05-04 21:27:22 +09: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;
|
private IBindable<APIUser> user;
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private IAPIProvider provider { get; set; }
|
private IAPIProvider api { get; set; }
|
||||||
|
|
||||||
private readonly IBindable<UserStatus> status = new Bindable<UserStatus>();
|
private readonly IBindable<UserStatus> status = new Bindable<UserStatus>();
|
||||||
private readonly IBindable<UserActivity> activity = new Bindable<UserActivity>();
|
private readonly IBindable<UserActivity> activity = new Bindable<UserActivity>();
|
||||||
@ -60,7 +60,8 @@ namespace osu.Desktop
|
|||||||
|
|
||||||
config.BindWith(OsuSetting.DiscordRichPresence, privacyMode);
|
config.BindWith(OsuSetting.DiscordRichPresence, privacyMode);
|
||||||
|
|
||||||
(user = provider.LocalUser.GetBoundCopy()).BindValueChanged(u =>
|
user = api.LocalUser.GetBoundCopy();
|
||||||
|
user.BindValueChanged(u =>
|
||||||
{
|
{
|
||||||
status.UnbindBindings();
|
status.UnbindBindings();
|
||||||
status.BindTo(u.NewValue.Status);
|
status.BindTo(u.NewValue.Status);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user