Skip to content

Commit 55fc3d8

Browse files
committed
Add popup dismissed event args; remove SongMapper utilities
Added PopupDismissedEventArgs class and related enum for popup event handling. Removed SongMapper.cs and its mapping utilities. Updated a LogTrace call in LyricsMgtFlow.cs for improved logging. No functional changes in PlaybackEventArgs.cs.
1 parent 69559bd commit 55fc3d8

File tree

4 files changed

+27
-63
lines changed

4 files changed

+27
-63
lines changed

Dimmer/Dimmer/Orchestration/LyricsMgtFlow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ private void ResetCurrentLyricDisplay()
300300
if (onlineLyrics != null)
301301
{
302302

303-
_logger.LogTrace("LYRICS FINDER :::::: Found online lyrics for {SongTitle} from {Source}", song.Title);
303+
_logger.LogTrace(message: "LYRICS FINDER :::::: Found online lyrics for {SongTitle} from {Source}", song.Title);
304304

305305
// Optionally, save to DB or local storage here.
306306
await _lyricsMetadataService.SaveLyricsForSongAsync(song.Id, false,onlineLyrics.PlainLyrics, onlineLyrics.SyncedLyrics, false

Dimmer/Dimmer/Utilities/Events/PlaybackEventArgs.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ public PlaybackEventArgs(SongModelView? song)
1313
AudioServiceCurrentPlayingSongView = song;
1414
}
1515
}
16+
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace Dimmer.Utilities.Events;
8+
9+
public class PopupDismissedEventArgs : EventArgs
10+
{
11+
public bool HasActionAfterDismissed { get; set; }
12+
public PopupDismissedActionEnums DismissedActionDescription { get; set; }
13+
}
14+
15+
public enum PopupDismissedActionEnums
16+
{
17+
None,
18+
GoToSingleSongDetails,
19+
GoToArtistPage,
20+
GoToDetailsPage,
21+
GoToStatsPage,
22+
GoToSettingsPage,
23+
GoToLyricsPage,
24+
GoToAlbumPage
25+
}

Dimmer/Dimmer/Utilities/TypeConverters/SongMapper.cs

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)