1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-03 14:56:01 +02:00

Added File Recovery editor setting

This commit is contained in:
Brian Fiete 2020-10-08 06:45:22 -07:00
parent 16cd9f7a77
commit 080a5483ae
4 changed files with 17 additions and 2 deletions

View file

@ -548,6 +548,13 @@ namespace IDE
None
}
public enum FileRecoveryKind
{
No,
Yes,
BackupOnly
}
public List<String> mFonts = new .() ~ DeleteContainerAndItems!(_);
public float mFontSize = 12;
public AutoCompleteShowKind mAutoCompleteShowKind = .PanelIfVisible;
@ -564,6 +571,7 @@ namespace IDE
public bool mSpellCheckEnabled = true;
public bool mShowLineNumbers = true;
public bool mFreeCursorMovement;
public FileRecoveryKind mEnableFileRecovery = .Yes;
public void Serialize(StructuredData sd)
{
@ -586,6 +594,7 @@ namespace IDE
sd.Add("SpellCheckEnabled", mSpellCheckEnabled);
sd.Add("ShowLineNumbers", mShowLineNumbers);
sd.Add("FreeCursorMovement", mFreeCursorMovement);
sd.Add("EnableFileRecovery", mEnableFileRecovery);
}
public void Deserialize(StructuredData sd)
@ -612,6 +621,7 @@ namespace IDE
sd.Get("SpellCheckEnabled", ref mSpellCheckEnabled);
sd.Get("ShowLineNumbers", ref mShowLineNumbers);
sd.Get("FreeCursorMovement", ref mFreeCursorMovement);
sd.GetEnum<FileRecoveryKind>("EnableFileRecovery", ref mEnableFileRecovery);
}
public void SetDefaults()