File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/Papercut.UI/ViewModels Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -499,9 +499,8 @@ await this.ShowMessageAsync("Update Not Available",
499499 // Create upgrade dialog view model
500500 var upgradeDialog = new UI . ViewModels . UpgradeDialogViewModel ( currentVersion , newVersion , releaseNotesHtml ) ;
501501
502- // Get the window manager from DI and show the dialog manually
503- var windowManager = new Caliburn . Micro . WindowManager ( ) ;
504- var dialogResult = await windowManager . ShowDialogAsync ( upgradeDialog ) ;
502+ // Show the dialog using the injected window manager
503+ var dialogResult = await this . _viewModelWindowManager . ShowDialogAsync ( upgradeDialog ) ;
505504
506505 // Check user's choice
507506 if ( upgradeDialog . UserChoice != UI . ViewModels . UpgradeChoice . Upgrade )
You can’t perform that action at this time.
0 commit comments