From ba66c1770aa6d6177c6a3b75647284925338306c Mon Sep 17 00:00:00 2001 From: Inrixia Date: Wed, 20 Dec 2023 14:04:46 +1300 Subject: [PATCH] Fix #9 --- plugins/SongDownloader/src/Settings.ts | 2 +- plugins/TidalTags/src/Settings.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/SongDownloader/src/Settings.ts b/plugins/SongDownloader/src/Settings.ts index 24e42e8a..4a40f2f9 100644 --- a/plugins/SongDownloader/src/Settings.ts +++ b/plugins/SongDownloader/src/Settings.ts @@ -4,7 +4,7 @@ import { html } from "@neptune/voby"; import { storage } from "@plugin"; import { AudioQualityInverse, PlaybackContextAudioQuality, validQualitiesSettings } from "../../../lib/AudioQuality"; -storage.desiredDownloadQuality = PlaybackContextAudioQuality.HiRes; +storage.desiredDownloadQuality ??= PlaybackContextAudioQuality.HiRes; export const Settings = () => html`

Download Quality

Select the desired max download quality:

diff --git a/plugins/TidalTags/src/Settings.ts b/plugins/TidalTags/src/Settings.ts index 113eeb6e..9b2c5aaa 100644 --- a/plugins/TidalTags/src/Settings.ts +++ b/plugins/TidalTags/src/Settings.ts @@ -5,10 +5,10 @@ import { storage } from "@plugin"; import { setStreamQualityIndicator } from "./streamQualitySelector"; import { updateTrackLists } from "./updateTrackElements"; -storage.showFLACInfo = true; -storage.showFLACInfoBorder = false; -storage.showAllQualities = true; -storage.showAtmosQuality = true; +storage.showFLACInfo ??= true; +storage.showFLACInfoBorder ??= false; +storage.showAllQualities ??= true; +storage.showAtmosQuality ??= true; export const Settings = () => { setTimeout(() => { const showFLACInfo = document.getElementById("showFLACInfo");