Skip to content

Commit

Permalink
Mae overlay off by default
Browse files Browse the repository at this point in the history
  • Loading branch information
differsthecat committed Dec 21, 2023
1 parent 104f37b commit 0295dd1
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions libs/common/src/platform/services/state.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1546,13 +1546,11 @@ export class StateService<
}

async getAutoFillOverlayVisibility(options?: StorageOptions): Promise<number> {
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<void> {
Expand Down

0 comments on commit 0295dd1

Please sign in to comment.