[MM-46533] Remove buildConfig item and add webpack flags for onboarding screens and GPU acceleration (#2241)

* [MM-46533] Remove buildConfig item and add webpack flags for onboarding screens and GPU acceleration

* REVERT ME

* Use contexts instead

* Revert "REVERT ME"

This reverts commit 1e75779623f1c5eb2ce3a64e0c39cd4a8cf7ada7.
This commit is contained in:
Devin Binnie
2022-08-25 10:58:06 -04:00
committed by GitHub
parent 461ebfebf4
commit f58a4b1826
11 changed files with 28 additions and 20 deletions

View File

@@ -86,7 +86,10 @@ export function handleOpenTab(event: IpcMainEvent, serverName: string, tabName:
}
export function handleMainWindowIsShown() {
const showWelcomeScreen = !Config.skipOnboardingScreens && !Config.teams.length;
// eslint-disable-next-line no-undef
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const showWelcomeScreen = !(Boolean(__SKIP_ONBOARDING_SCREENS__) || Config.teams.length);
const mainWindow = WindowManager.getMainWindow();
if (mainWindow) {