Skip to content

Commit

Permalink
win32_gui_example.dart: dialog messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpassos committed Aug 10, 2023
1 parent 39560f8 commit 70c98fa
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions example/win32_gui_example.dart
Expand Up @@ -128,10 +128,12 @@ class MainWindow extends Window {
});

dialogConfirmExit.onDestroyed.listen((_) {
showMessage(
'Dialog Result',
'Dialog Closed> result: ${dialogConfirmExit.result}',
);
if (!dialogConfirmExit.timeoutTriggered) {
showMessage(
'Dialog Result',
'Dialog Closed> result: ${dialogConfirmExit.result}',
);
}
});

dialogConfirmExit.create();
Expand Down

0 comments on commit 70c98fa

Please sign in to comment.