fix --start-minimized not working when splash is disabled
This commit is contained in:
@@ -319,7 +319,7 @@ function buildBrowserWindowOptions(): BrowserWindowConstructorOptions {
|
|||||||
splashTheming !== false ? splashBackground : nativeTheme.shouldUseDarkColors ? "#313338" : "#ffffff";
|
splashTheming !== false ? splashBackground : nativeTheme.shouldUseDarkColors ? "#313338" : "#ffffff";
|
||||||
|
|
||||||
const options: BrowserWindowConstructorOptions = {
|
const options: BrowserWindowConstructorOptions = {
|
||||||
show: Settings.store.enableSplashScreen === false,
|
show: Settings.store.enableSplashScreen === false && !CommandLine.values["start-minimized"],
|
||||||
backgroundColor,
|
backgroundColor,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
nodeIntegration: false,
|
nodeIntegration: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user