Forward update flag on Flipper restart

Summary:
I find it pretty odd that TypeScript just happily accepts
flags that don't exist?

This ensures Flipper properly restarts through Launcher when relevant settings change, which had caused a few support issues.

Reviewed By: lawrencelomax

Differential Revision: D33587139

fbshipit-source-id: d92392e87855b1267abeb374631c85cf3c86ded7
This commit is contained in:
Pascal Hartig
2022-01-17 10:30:45 -08:00
committed by Facebook GitHub Bot
parent 7579b81b97
commit 2ad1df283f

View File

@@ -166,8 +166,8 @@ export function initializeElectron(
shouldUseDarkColors() { shouldUseDarkColors() {
return remote.nativeTheme.shouldUseDarkColors; return remote.nativeTheme.shouldUseDarkColors;
}, },
restartFlipper() { restartFlipper(update: boolean = false) {
restart(); restart(update);
}, },
loadDefaultPlugins: getDefaultPluginsIndex, loadDefaultPlugins: getDefaultPluginsIndex,
serverConfig: flipperServerConfig, serverConfig: flipperServerConfig,