diff --git a/DiztinGUIsh/window/NavigationForm.cs b/DiztinGUIsh/window/NavigationForm.cs index ea72059..7e35524 100644 --- a/DiztinGUIsh/window/NavigationForm.cs +++ b/DiztinGUIsh/window/NavigationForm.cs @@ -34,6 +34,16 @@ public ISnesNavigation SnesNavigation public NavigationForm() { InitializeComponent(); + FormClosing += Navigation_Closing; + } + + private void Navigation_Closing(object sender, FormClosingEventArgs e) + { + if (e.CloseReason != CloseReason.UserClosing) + return; + + e.Cancel = true; + Hide(); } private void Navigation_Load(object sender, EventArgs e)