mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +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:
@@ -1032,7 +1032,7 @@ public class TableEditor : Scenario
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.ErrorQuery ((sender as View)?.App, 60, 20, "Failed to set text", ex.Message, "Ok");
|
||||
MessageBox.ErrorQuery ((sender as View)?.App!, 60, 20, "Failed to set text", ex.Message, "Ok");
|
||||
}
|
||||
|
||||
_tableView!.Update ();
|
||||
@@ -1171,7 +1171,7 @@ public class TableEditor : Scenario
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
MessageBox.ErrorQuery (_tableView?.App, "Could not find local drives", e.Message, "Ok");
|
||||
MessageBox.ErrorQuery (_tableView?.App!, "Could not find local drives", e.Message, "Ok");
|
||||
}
|
||||
|
||||
_tableView!.Table = source;
|
||||
@@ -1235,7 +1235,7 @@ public class TableEditor : Scenario
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.ErrorQuery (_tableView.App, 60, 20, "Failed to set", ex.Message, "Ok");
|
||||
MessageBox.ErrorQuery (_tableView.App!, 60, 20, "Failed to set", ex.Message, "Ok");
|
||||
}
|
||||
|
||||
_tableView!.Update ();
|
||||
|
||||
Reference in New Issue
Block a user