mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Fix scenario Shortcut not restoring Application.Quit
This commit is contained in:
@@ -12,6 +12,7 @@ public class Shortcuts : Scenario
|
||||
public override void Main ()
|
||||
{
|
||||
Application.Init ();
|
||||
var quitKey = Application.QuitKey;
|
||||
Window app = new ();
|
||||
|
||||
app.Loaded += App_Loaded;
|
||||
@@ -19,6 +20,7 @@ public class Shortcuts : Scenario
|
||||
Application.Run (app);
|
||||
app.Dispose ();
|
||||
Application.Shutdown ();
|
||||
Application.QuitKey = quitKey;
|
||||
}
|
||||
|
||||
// Setting everything up in Loaded handler because we change the
|
||||
|
||||
Reference in New Issue
Block a user