- [Core] fix crash issue when opening multiple instances.

This commit is contained in:
Razmoth
2024-01-04 15:54:41 +04:00
parent b306965e9f
commit bd5f53afc6
3 changed files with 13 additions and 4 deletions

View File

@@ -23,7 +23,16 @@ namespace AssetStudio
_fileLogging = value;
if (_fileLogging)
{
File = new FileLogger();
try
{
File = new FileLogger();
}
catch
{
_fileLogging = false;
Error("log file is already in use, disabling...");
return;
}
}
else
{