diff --git a/desktop/flipper-ui-core/src/chrome/SettingsSheet.tsx b/desktop/flipper-ui-core/src/chrome/SettingsSheet.tsx index 1fe58e948..75877ffea 100644 --- a/desktop/flipper-ui-core/src/chrome/SettingsSheet.tsx +++ b/desktop/flipper-ui-core/src/chrome/SettingsSheet.tsx @@ -27,6 +27,7 @@ import { Platform, reportUsage, Settings, + sleep, } from 'flipper-common'; import {Modal, message, Button} from 'antd'; import {Layout, withTrackingScope, _NuxManagerContext} from 'flipper-plugin'; @@ -73,9 +74,9 @@ class SettingsSheet extends Component { this.props.updateSettings(this.state.updatedSettings); this.props.updateLauncherSettings(this.state.updatedLauncherSettings); this.props.onHide(); - return flush().then(() => { - getRenderHostInstance().restartFlipper(true); - }); + await flush(); + await sleep(1000); + getRenderHostInstance().restartFlipper(true); }; applyChangesWithoutRestart = async () => {