Rename view model manager methods

This commit is contained in:
tyrrrz
2026-04-02 14:50:11 +03:00
parent df683b3b41
commit 1f189e5206
4 changed files with 16 additions and 18 deletions

View File

@@ -101,9 +101,7 @@ public class App : Application, IDisposable
{
desktop.MainWindow = _services
.GetRequiredService<ViewManager>()
.TryBindWindow(
_services.GetRequiredService<ViewModelManager>().CreateMainViewModel()
);
.TryBindWindow(_services.GetRequiredService<ViewModelManager>().GetMainViewModel());
// Although `App.Dispose()` is invoked from `Program.Main(...)`, on some platforms
// it may be called too late in the shutdown lifecycle. Attach an exit