mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 08:50:25 +01:00
fixes crashing bug on exit
This commit is contained in:
@@ -480,7 +480,7 @@ namespace Terminal.Gui {
|
||||
// Closes the application if it's true.
|
||||
if (closeDriver) {
|
||||
MainLoop = null;
|
||||
Driver.End ();
|
||||
Driver?.End ();
|
||||
Driver = null;
|
||||
}
|
||||
|
||||
|
||||
@@ -88,8 +88,6 @@ namespace UICatalog {
|
||||
scenario.Run ();
|
||||
scenario = GetScenarioToRun ();
|
||||
}
|
||||
// Now closes the driver too.
|
||||
Application.Shutdown ();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user