1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-18 16:10:26 +02:00

Cmd line option to disable file recovery

This commit is contained in:
Brian Fiete 2022-01-13 11:38:48 -05:00
parent 63792924e0
commit b49cd5d12a
3 changed files with 12 additions and 3 deletions

View file

@ -56,6 +56,7 @@ namespace IDE
WaitEvent mProcessingEvent ~ delete _;
String mWorkspaceDir = new String() ~ delete _;
bool mWantWorkspaceCleanup;
public bool mDisabled;
public ~this()
{
@ -177,7 +178,7 @@ namespace IDE
public void CheckWorkspace()
{
if (gApp.mSettings.mEditorSettings.mEnableFileRecovery != .Yes)
if ((gApp.mSettings.mEditorSettings.mEnableFileRecovery != .Yes) && (!mDisabled))
return;
mWantWorkspaceCleanup = true;