mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +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:
@@ -100,13 +100,13 @@ public class ExampleWindow : Runnable<string>
|
||||
{
|
||||
if (userNameText.Text == "admin" && passwordText.Text == "password")
|
||||
{
|
||||
MessageBox.Query (App, "Logging In", "Login Successful", "Ok");
|
||||
MessageBox.Query (App!, "Logging In", "Login Successful", "Ok");
|
||||
Result = userNameText.Text;
|
||||
App?.RequestStop ();
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.ErrorQuery (App, "Logging In", "Incorrect username or password", "Ok");
|
||||
MessageBox.ErrorQuery (App!, "Logging In", "Incorrect username or password", "Ok");
|
||||
}
|
||||
// When Accepting is handled, set e.Handled to true to prevent further processing.
|
||||
e.Handled = true;
|
||||
|
||||
Reference in New Issue
Block a user