From 0295dd16e82a3960d00e3228cdfe02ba868dd85b Mon Sep 17 00:00:00 2001 From: Robyn MacCallum Date: Thu, 21 Dec 2023 09:53:16 -0500 Subject: [PATCH] Mae overlay off by default --- libs/common/src/platform/services/state.service.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/libs/common/src/platform/services/state.service.ts b/libs/common/src/platform/services/state.service.ts index fda79c5524c..6f7f4ecc19d 100644 --- a/libs/common/src/platform/services/state.service.ts +++ b/libs/common/src/platform/services/state.service.ts @@ -1546,13 +1546,11 @@ export class StateService< } async getAutoFillOverlayVisibility(options?: StorageOptions): Promise { - return ( - ( - await this.getGlobals( - this.reconcileOptions(options, await this.defaultOnDiskLocalOptions()) - ) - )?.autoFillOverlayVisibility ?? AutofillOverlayVisibility.OnFieldFocus - ); + const locallyStoredOptions = await this.defaultOnDiskLocalOptions(); + const reconciledOptions = this.reconcileOptions(options, locallyStoredOptions); + const globals = await this.getGlobals(reconciledOptions); + + return globals?.autoFillOverlayVisibility ?? AutofillOverlayVisibility.Off; } async setAutoFillOverlayVisibility(value: number, options?: StorageOptions): Promise {