mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 15:17:27 +08:00
Use DI correctly
This commit is contained in:
parent
b11ae1c571
commit
5f86b5a2fa
@ -43,6 +43,7 @@ namespace osu.Desktop
|
|||||||
[Resolved]
|
[Resolved]
|
||||||
private OsuGame game { get; set; } = null!;
|
private OsuGame game { get; set; } = null!;
|
||||||
|
|
||||||
|
[Resolved]
|
||||||
private LoginOverlay? login { get; set; }
|
private LoginOverlay? login { get; set; }
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
@ -66,8 +67,6 @@ namespace osu.Desktop
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(OsuConfigManager config)
|
private void load(OsuConfigManager config)
|
||||||
{
|
{
|
||||||
login = game.Dependencies.Get<LoginOverlay>();
|
|
||||||
|
|
||||||
client = new DiscordRpcClient(client_id)
|
client = new DiscordRpcClient(client_id)
|
||||||
{
|
{
|
||||||
// SkipIdenticalPresence allows us to fire SetPresence at any point and leave it to the underlying implementation
|
// SkipIdenticalPresence allows us to fire SetPresence at any point and leave it to the underlying implementation
|
||||||
|
Loading…
Reference in New Issue
Block a user