Skip to content

Commit dfee774

Browse files
committed
UI: Respect data storage location setting
1 parent c0e7d9f commit dfee774

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

UI/Program.cs

+5
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ public static int Main(string[] args)
8181
Program.CommandLineArgs = (string[])args.Clone();
8282
BuildAvaloniaApp().StartWithClassicDesktopLifetime(args, ShutdownMode.OnMainWindowClose);
8383
EmuApi.Release();
84+
85+
//Cleanup portable installation
86+
if(ConfigManager.HomeFolder == ConfigManager.DefaultPortableFolder && Directory.Exists(ConfigManager.DefaultDocumentsFolder)) {
87+
Directory.Delete(ConfigManager.DefaultDocumentsFolder, true);
88+
}
8489
}
8590

8691
return 0;

0 commit comments

Comments
 (0)