mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Split out user activity from user status (#4619)
Split out user activity from user status Co-authored-by: Dean Herbert <pe@ppy.sh>
This commit is contained in:
@ -154,8 +154,9 @@ namespace osu.Game.Overlays.Settings.Sections.General
|
||||
};
|
||||
|
||||
panel.Status.BindTo(api.LocalUser.Value.Status);
|
||||
panel.Activity.BindTo(api.LocalUser.Value.Activity);
|
||||
|
||||
dropdown.Current.ValueChanged += action =>
|
||||
dropdown.Current.BindValueChanged(action =>
|
||||
{
|
||||
switch (action.NewValue)
|
||||
{
|
||||
@ -178,9 +179,7 @@ namespace osu.Game.Overlays.Settings.Sections.General
|
||||
api.Logout();
|
||||
break;
|
||||
}
|
||||
};
|
||||
dropdown.Current.TriggerChange();
|
||||
|
||||
}, true);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -119,6 +119,7 @@ namespace osu.Game.Overlays
|
||||
}
|
||||
|
||||
panel.Status.BindTo(u.Status);
|
||||
panel.Activity.BindTo(u.Activity);
|
||||
return panel;
|
||||
})
|
||||
};
|
||||
|
Reference in New Issue
Block a user