mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Move activity (writable) bindable to APIAccess so it correctly transfers between users
This commit is contained in:
@ -17,6 +17,8 @@ namespace osu.Game.Online.API
|
||||
Id = 1001,
|
||||
});
|
||||
|
||||
public Bindable<UserActivity> Activity { get; } = new Bindable<UserActivity>();
|
||||
|
||||
public bool IsLoggedIn => true;
|
||||
|
||||
public string ProvidedUsername => LocalUser.Value.Username;
|
||||
@ -41,6 +43,15 @@ namespace osu.Game.Online.API
|
||||
}
|
||||
}
|
||||
|
||||
public DummyAPIAccess()
|
||||
{
|
||||
LocalUser.BindValueChanged(u =>
|
||||
{
|
||||
u.OldValue?.Activity.UnbindFrom(Activity);
|
||||
u.NewValue.Activity.BindTo(Activity);
|
||||
}, true);
|
||||
}
|
||||
|
||||
public virtual void Queue(APIRequest request)
|
||||
{
|
||||
}
|
||||
|
Reference in New Issue
Block a user