Skip to content

Commit

Permalink
Fix: Make MusixmatchRestricted error case a no-op
Browse files Browse the repository at this point in the history
The pop-up notification for MusixmatchRestricted errors was
found to be quite annoying. This commit removes the handling
code for this specific error case, no more of that stupid popup.

Signed-off-by: Dark-Matter7232 <[email protected]>
  • Loading branch information
Dark-Matter7232 committed Aug 18, 2024
1 parent e485293 commit bd0b867
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions Sources/EeveeSpotify/Lyrics/CustomLyrics.x.swift
Original file line number Diff line number Diff line change
Expand Up @@ -193,17 +193,8 @@ private func loadLyricsForCurrentTrack() throws {
}

case .MusixmatchRestricted:

if !hasShownRestrictedPopUp {
PopUpHelper.showPopUp(
delayed: false,
message: "musixmatch_restricted_popup".localized,
buttonText: "OK"
)

hasShownRestrictedPopUp.toggle()
}

// No-op: Do nothing when this error occurs
break
default:
break
}
Expand Down

0 comments on commit bd0b867

Please sign in to comment.