Skip to content

Commit 4e8473d

Browse files
feat: open window to show dialogs
1 parent b171a38 commit 4e8473d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

AutoStartConfirmLib/GUI/MessageService.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public async Task ShowError(string caption, string message = "")
8080
await DialogSemaphore.WaitAsync();
8181
try
8282
{
83+
Window.AppWindow.Show();
8384
var result = await dialog.ShowAsync();
8485
Logger.LogTrace("Closed error dialog {caption}: {message}", caption, message);
8586
tcs.TrySetResult();
@@ -164,6 +165,7 @@ public async Task<bool> ShowConfirm(string caption, string message = "")
164165
await DialogSemaphore.WaitAsync();
165166
try
166167
{
168+
Window.AppWindow.Show();
167169
var result = await dialog.ShowAsync();
168170
Logger.LogTrace("Closed confirm dialog {caption}: {message}, Result: {result}", caption, message, result);
169171
tcs.TrySetResult(result == ContentDialogResult.Primary);
@@ -211,6 +213,7 @@ public async Task ShowSuccess(string caption, string message = "")
211213
await DialogSemaphore.WaitAsync();
212214
try
213215
{
216+
Window.AppWindow.Show();
214217
var result = await dialog.ShowAsync();
215218
Logger.LogTrace("Closed success dialog {caption}: {message}", caption, message);
216219
tcs.TrySetResult();

0 commit comments

Comments
 (0)