mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-20 08:58:00 +02:00
Added ToggleCommentAlt as Toggle comments alternate style under Settings/Editor
This commit is contained in:
parent
b3cf28f500
commit
20261f5d0d
3 changed files with 5 additions and 1 deletions
|
@ -650,6 +650,7 @@ namespace IDE
|
|||
sd.Add("EnableFileRecovery", mEnableFileRecovery);
|
||||
sd.Add("FormatOnSave", mFormatOnSave);
|
||||
sd.Add("SyncWithWorkspacePanel", mSyncWithWorkspacePanel);
|
||||
sd.Add("ToggleCommentAlt", mToggleCommentAlt);
|
||||
}
|
||||
|
||||
public void Deserialize(StructuredData sd)
|
||||
|
@ -679,6 +680,7 @@ namespace IDE
|
|||
sd.GetEnum<FileRecoveryKind>("EnableFileRecovery", ref mEnableFileRecovery);
|
||||
sd.Get("FormatOnSave", ref mFormatOnSave);
|
||||
sd.Get("SyncWithWorkspacePanel", ref mSyncWithWorkspacePanel);
|
||||
sd.Get("ToggleCommentAlt", ref mToggleCommentAlt);
|
||||
}
|
||||
|
||||
public void SetDefaults()
|
||||
|
|
|
@ -126,7 +126,7 @@ namespace IDE.ui
|
|||
AddPropertiesItem(category, "Enable File Recovery", "mEnableFileRecovery");
|
||||
AddPropertiesItem(category, "Format on Save", "mFormatOnSave");
|
||||
AddPropertiesItem(category, "Sync with Workspace Panel", "mSyncWithWorkspacePanel");
|
||||
|
||||
AddPropertiesItem(category, "Toggle comment alternate style", "mToggleCommentAlt");
|
||||
category.Open(true, true);
|
||||
}
|
||||
|
||||
|
|
|
@ -2162,6 +2162,8 @@ namespace IDE.ui
|
|||
|
||||
public bool ToggleComment(bool? doComment = null)
|
||||
{
|
||||
if (gApp.mSettings.mEditorSettings.mToggleCommentAlt) return ToggleCommentAlt(doComment);
|
||||
|
||||
if (CheckReadOnly())
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue