mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Linux - cleanup initialization
This commit is contained in:
parent
97b858b332
commit
becc6e0715
@ -22,8 +22,6 @@ public class App : Application
|
|||||||
Program.CreateLogger(_container);
|
Program.CreateLogger(_container);
|
||||||
RxApp.MainThreadScheduler = AvaloniaScheduler.Instance;
|
RxApp.MainThreadScheduler = AvaloniaScheduler.Instance;
|
||||||
AvaloniaXamlLoader.Load(this);
|
AvaloniaXamlLoader.Load(this);
|
||||||
|
|
||||||
RegisterProviders();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnFrameworkInitializationCompleted()
|
public override void OnFrameworkInitializationCompleted()
|
||||||
@ -31,9 +29,13 @@ public class App : Application
|
|||||||
if (Design.IsDesignMode)
|
if (Design.IsDesignMode)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (ApplicationLifetime is not IClassicDesktopStyleApplicationLifetime desktop)
|
||||||
|
return;
|
||||||
|
|
||||||
ArtemisBootstrapper.Initialize();
|
ArtemisBootstrapper.Initialize();
|
||||||
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
|
|
||||||
_applicationStateManager = new ApplicationStateManager(_container!, desktop.Args);
|
_applicationStateManager = new ApplicationStateManager(_container!, desktop.Args);
|
||||||
|
RegisterProviders();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void RegisterProviders()
|
private void RegisterProviders()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user