From dfee774e8187ac54a7e9ce6704feca1084c0d4dc Mon Sep 17 00:00:00 2001 From: Qxe5 Date: Tue, 28 Nov 2023 21:01:05 +0000 Subject: [PATCH] UI: Respect data storage location setting --- UI/Program.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/UI/Program.cs b/UI/Program.cs index dfc4ba319..86a6454f9 100644 --- a/UI/Program.cs +++ b/UI/Program.cs @@ -81,6 +81,11 @@ public static int Main(string[] args) Program.CommandLineArgs = (string[])args.Clone(); BuildAvaloniaApp().StartWithClassicDesktopLifetime(args, ShutdownMode.OnMainWindowClose); EmuApi.Release(); + + //Cleanup portable installation + if(ConfigManager.HomeFolder == ConfigManager.DefaultPortableFolder && Directory.Exists(ConfigManager.DefaultDocumentsFolder)) { + Directory.Delete(ConfigManager.DefaultDocumentsFolder, true); + } } return 0;