1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-14 14:24:10 +02:00

Add startup panel

This commit is contained in:
Fusioon 2023-06-04 13:41:44 +02:00
parent 891e4fd789
commit 64a23ceb9a
4 changed files with 353 additions and 0 deletions

View file

@ -1744,6 +1744,8 @@ namespace IDE
continue;
if (tabWidget.mContent is WelcomePanel)
continue;
if (tabWidget.mContent is StartupPanel)
continue;
}
using (data.CreateObject())
@ -12382,6 +12384,9 @@ namespace IDE
if ((mIsFirstRun) && (!mWorkspace.IsInitialized))
ShowWelcome();
if ((mSettings.mUISettings.mShowStartupPanel) && (!mIsFirstRun) && (!mWorkspace.IsInitialized))
ShowStartup();
}
#endif
void ShowWelcome()
@ -12392,6 +12397,14 @@ namespace IDE
tabButton.Activate();
}
void ShowStartup()
{
StartupPanel startupPanel = new .();
TabbedView tabbedView = GetDefaultDocumentTabbedView();
let tabButton = SetupTab(tabbedView, "Startup", 0, startupPanel, true);
tabButton.Activate();
}
public void CheckLoadConfig()
{
if (mBeefConfig.mLibsChanged)