mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-30 17:51:45 +00:00
Clean up
This commit is contained in:
@@ -97,9 +97,10 @@ public class App : Application, IDisposable
|
|||||||
{
|
{
|
||||||
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
|
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
|
||||||
{
|
{
|
||||||
desktop.MainWindow = _services
|
var viewManager = _services.GetRequiredService<ViewManager>();
|
||||||
.GetRequiredService<ViewManager>()
|
var viewModelManager = _services.GetRequiredService<ViewModelManager>();
|
||||||
.TryBindWindow(_services.GetRequiredService<ViewModelManager>().GetMainViewModel());
|
|
||||||
|
desktop.MainWindow = viewManager.TryBindWindow(viewModelManager.GetMainViewModel());
|
||||||
|
|
||||||
// Although `App.Dispose()` is invoked from `Program.Main(...)`, on some platforms
|
// Although `App.Dispose()` is invoked from `Program.Main(...)`, on some platforms
|
||||||
// it may be called too late in the shutdown lifecycle. Attach an exit
|
// it may be called too late in the shutdown lifecycle. Attach an exit
|
||||||
|
|||||||
Reference in New Issue
Block a user