1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-16 07:14:09 +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

@ -1744,6 +1744,8 @@ namespace IDE
continue;
if (tabWidget.mContent is WelcomePanel)
continue;
if (tabWidget.mContent is StartupPanel)
continue;
}
using (data.CreateObject())
@ -12385,6 +12387,9 @@ namespace IDE
if ((mIsFirstRun) && (!mWorkspace.IsInitialized))
ShowWelcome();
if ((mSettings.mUISettings.mShowStartupPanel) && (!mIsFirstRun) && (!mWorkspace.IsInitialized))
ShowStartup();
}
#endif
void ShowWelcome()
@ -12395,6 +12400,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)