Skip to content

Commit

Permalink
sdk: suppress storage event for hidden values
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Jun 25, 2024
1 parent 06bac3c commit 61a824d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdk/src/storage-settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ export class StorageSettings<T extends string> implements Settings {
this.device.storage.setItem(key, value?.toString());
}
setting?.onPut?.(oldValue, value);
this.device.onDeviceEvent(ScryptedInterface.Settings, undefined);
if (!setting?.hide)
this.device.onDeviceEvent(ScryptedInterface.Settings, undefined);
}

getItemInternal(key: T, setting: StorageSetting, rawDevice?: boolean): any {
Expand Down

0 comments on commit 61a824d

Please sign in to comment.