diff --git a/Files/App.xaml.cs b/Files/App.xaml.cs index 8473a12edbc7..81bb5fd6b6d4 100644 --- a/Files/App.xaml.cs +++ b/Files/App.xaml.cs @@ -375,6 +375,10 @@ private void OnSuspending(object sender, SuspendingEventArgs e) LibraryManager?.Dispose(); DrivesManager?.Dispose(); deferral.Complete(); + +#if DEBUG + Current.Exit(); +#endif } public static void SaveSessionTabs() // Enumerates through all tabs and gets the Path property and saves it to AppSettings.LastSessionPages