mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-11 04:52:21 +02:00
Added File Recovery editor setting
This commit is contained in:
parent
16cd9f7a77
commit
080a5483ae
4 changed files with 17 additions and 2 deletions
|
@ -862,7 +862,8 @@ namespace IDE.ui
|
|||
|
||||
public void CheckSavedContents()
|
||||
{
|
||||
if (((mEditData != null)) && (mEditData.mLastFileTextVersion == mEditWidget.Content.mData.mCurTextVersionId) && (mEditData.mRecoveryHash.IsZero))
|
||||
if (((mEditData != null)) && (mEditData.mLastFileTextVersion == mEditWidget.Content.mData.mCurTextVersionId) && (mEditData.mRecoveryHash.IsZero) &&
|
||||
(gApp.mSettings.mEditorSettings.mEnableFileRecovery != .No))
|
||||
{
|
||||
String text = scope .();
|
||||
mEditWidget.GetText(text);
|
||||
|
@ -6170,7 +6171,7 @@ namespace IDE.ui
|
|||
{
|
||||
#if !CLI
|
||||
DeleteAndNullify!(mFileRecoveryEntry);
|
||||
if ((mFilePath != null) && (mEditData != null) && (!mEditData.mRecoveryHash.IsZero))
|
||||
if ((mFilePath != null) && (mEditData != null) && (!mEditData.mRecoveryHash.IsZero) && (gApp.mSettings.mEditorSettings.mEnableFileRecovery != .No))
|
||||
{
|
||||
String contents = scope .();
|
||||
mEditWidget.GetText(contents);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue