1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-27 20:18:01 +02:00

Fixes for 'Welcome'

This commit is contained in:
Brian Fiete 2019-09-23 11:50:11 -07:00
parent c6ef4b9b75
commit 54b77f400a
2 changed files with 29 additions and 12 deletions

View file

@ -4816,6 +4816,7 @@ namespace IDE
internalDebugMenu.AddMenuItem("Reconnect BeefPerf", null, new (menu) => { BeefPerf.RetryConnect(); } );
AddMenuItem(internalDebugMenu, "Report Memory", "Report Memory");
internalDebugMenu.AddMenuItem("Crash", null, new (menu) => { Runtime.FatalError("Bad"); });
internalDebugMenu.AddMenuItem("Show Welcome", null, new (menu) => { ShowWelcome(); });
internalDebugMenu.AddMenuItem("Exit Test", null, new (menu) => { ExitTest(); });
internalDebugMenu.AddMenuItem("Run Test", null, new (menu) => { mRunTest = !mRunTest; });
internalDebugMenu.AddMenuItem("GC Collect", null, new (menu) =>
@ -9989,14 +9990,16 @@ namespace IDE
ShowStartupFile();
if (mIsFirstRun)
{
WelcomePanel welcomePanel = new .();
TabbedView tabbedView = GetDefaultDocumentTabbedView();
let tabButton = SetupTab(tabbedView, "Welcome", 0, welcomePanel, true);
tabButton.Activate();
}
ShowWelcome();
}
#endif
void ShowWelcome()
{
WelcomePanel welcomePanel = new .();
TabbedView tabbedView = GetDefaultDocumentTabbedView();
let tabButton = SetupTab(tabbedView, "Welcome", 0, welcomePanel, true);
tabButton.Activate();
}
void LoadConfig()
{