Skip to content

Commit

Permalink
TidalTags - Remove showAllQualities setting in prep for removal of MQA
Browse files Browse the repository at this point in the history
  • Loading branch information
Inrixia committed Jun 19, 2024
1 parent 5cca858 commit 635537b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
11 changes: 0 additions & 11 deletions plugins/TidalTags/src/Settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { html } from "@neptune/voby";
import { storage } from "@plugin";

storage.showTags ??= true;
storage.showAllQualities ??= true;
storage.showAtmosQuality ??= true;
storage.showFLACInfoBorder ??= true;
storage.InfoColumnColors ??= false;
Expand All @@ -15,9 +14,6 @@ export const Settings = () => {
const showFLACInfoBorder = document.getElementById("showFLACInfoBorder");
if (showFLACInfoBorder instanceof HTMLInputElement && showFLACInfoBorder.checked !== storage.showFLACInfoBorder) showFLACInfoBorder.checked = storage.showFLACInfoBorder;

const showAllQualities = document.getElementById("showAllQualities");
if (showAllQualities instanceof HTMLInputElement && showAllQualities.checked !== storage.showAllQualities) showAllQualities.checked = storage.showAllQualities;

const showAtmosQuality = document.getElementById("showAtmosQuality");
if (showAtmosQuality instanceof HTMLInputElement && showAtmosQuality.checked !== storage.showAtmosQuality) showAtmosQuality.checked = storage.showAtmosQuality;

Expand All @@ -36,13 +32,6 @@ export const Settings = () => {
<span class="slider" />
</label>
<h3 class="settings-header">Display all Qualities</h3>
<p class="settings-explainer">Display MQA if HiRes is avalible.</p>
<label class="switch">
<input type="checkbox" id="showAllQualities" onChange=${onChange("showAllQualities")} />
<span class="slider" />
</label>
<br class="settings-spacer" />
<h3 class="settings-header">Display Atmos Quality</h3>
<p class="settings-explainer">Display the Atmos Quality tags.</p>
Expand Down
1 change: 0 additions & 1 deletion plugins/TidalTags/src/updateTrackElements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ const setQualityTag = (trackRow: Element, trackId: string, mediaItem: TrackItem)
span.appendChild(tagElement);
}

if (trackTags.includes(QualityTag.HiRes) && !storage.showAllQualities) trackTags = trackTags.filter((tag) => tag !== QualityTag.MQA);
for (const tag of trackTags) {
if (tag === QualityTag.High) continue;
if (!storage.showAtmosQuality && tag === QualityTag.DolbyAtmos) continue;
Expand Down

0 comments on commit 635537b

Please sign in to comment.