1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-03 06:45:59 +02:00

Added setting to open new tabs on right instead of left

This commit is contained in:
blat-blatnik 2021-11-30 23:37:44 +01:00
parent c2ed0d4afe
commit 318cb6524d
4 changed files with 24 additions and 6 deletions

View file

@ -416,8 +416,15 @@ namespace IDE
public class UISettings
{
public enum InsertNewTabsKind
{
LeftOfExistingTabs,
RightOfExistingTabs,
}
public Colors mColors = new .() ~ delete _;
public float mScale = 100;
public InsertNewTabsKind mInsertNewTabs = .LeftOfExistingTabs;
public List<String> mTheme = new .() ~ DeleteContainerAndItems!(_);
public void SetDefaults()
@ -557,6 +564,7 @@ namespace IDE
for (let str in mTheme)
sd.Add(str);
}
sd.Add("InsertNewTabs", mInsertNewTabs);
}
public void Deserialize(StructuredData sd)
@ -569,6 +577,7 @@ namespace IDE
sd.GetCurString(str);
mTheme.Add(str);
}
sd.Get("InsertNewTabs", ref mInsertNewTabs);
}
}