mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
Fixes build warnings recently introduced (#4506)
* Fixed warnings I recently introduced. Replaced nullable App references with null-forgiving operator (!) in MessageBox and dialog calls to suppress nullable warnings. Updated XML docs to use Dim.Fill() and clarified method references. Made Application.Popover registration null-safe. Fixed test output helper usage in ShadowTests. No functional changes. * Fixes Release build warnings
This commit is contained in:
@@ -83,13 +83,13 @@ public class WizardAsView : Scenario
|
||||
wizard.Finished += (s, args) =>
|
||||
{
|
||||
//args.Cancel = true;
|
||||
MessageBox.Query ((s as View)?.App, "Setup Wizard", "Finished", "Ok");
|
||||
MessageBox.Query ((s as View)?.App!, "Setup Wizard", "Finished", "Ok");
|
||||
Application.RequestStop ();
|
||||
};
|
||||
|
||||
wizard.Cancelled += (s, args) =>
|
||||
{
|
||||
int? btn = MessageBox.Query ((s as View)?.App, "Setup Wizard", "Are you sure you want to cancel?", "Yes", "No");
|
||||
int? btn = MessageBox.Query ((s as View)?.App!, "Setup Wizard", "Are you sure you want to cancel?", "Yes", "No");
|
||||
args.Cancel = btn == 1;
|
||||
|
||||
if (btn == 0)
|
||||
@@ -126,7 +126,7 @@ public class WizardAsView : Scenario
|
||||
{
|
||||
secondStep.Title = "2nd Step";
|
||||
|
||||
MessageBox.Query ((s as View)?.App,
|
||||
MessageBox.Query ((s as View)?.App!,
|
||||
"Wizard Scenario",
|
||||
"This Wizard Step's title was changed to '2nd Step'",
|
||||
"Ok"
|
||||
|
||||
Reference in New Issue
Block a user