mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
* Fixes #3956. MessageBox doesn't return the index of IsDefault button * Change to Theory test. * Fix unit test 'Error opening terminal: unknown.' * Remove RunningUnitTests = true because constructor already set it. --------- Co-authored-by: Tig <tig@users.noreply.github.com>
This commit is contained in:
@@ -374,6 +374,10 @@ public static class MessageBox
|
||||
{
|
||||
Clicked = (int)btn.Data!;
|
||||
}
|
||||
else
|
||||
{
|
||||
Clicked = defaultButton;
|
||||
}
|
||||
|
||||
e.Cancel = true;
|
||||
Application.RequestStop ();
|
||||
|
||||
Reference in New Issue
Block a user