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

Merge pull request #1858 from Fusioon/startup_panel

Add startup panel
This commit is contained in:
Brian Fiete 2023-06-08 08:28:28 -04:00 committed by GitHub
commit 73d3e0f5e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 353 additions and 0 deletions

View file

@ -449,6 +449,7 @@ namespace IDE
public float mScale = 100;
public InsertNewTabsKind mInsertNewTabs = .LeftOfExistingTabs;
public List<String> mTheme = new .() ~ DeleteContainerAndItems!(_);
public bool mShowStartupPanel = true;
public void SetDefaults()
{
@ -457,6 +458,7 @@ namespace IDE
mScale = 100;
mInsertNewTabs = .LeftOfExistingTabs;
ClearAndDeleteItems(mTheme);
mShowStartupPanel = true;
}
public void Apply()
@ -596,6 +598,7 @@ namespace IDE
sd.Add(str);
}
sd.Add("InsertNewTabs", mInsertNewTabs);
sd.Add("ShowStartupPanel", mShowStartupPanel);
}
public void Deserialize(StructuredData sd)
@ -609,6 +612,7 @@ namespace IDE
mTheme.Add(str);
}
sd.Get("InsertNewTabs", ref mInsertNewTabs);
sd.Get("ShowStartupPanel", ref mShowStartupPanel);
}
}