Skip to content

Commit

Permalink
added missing ifdef for USE_LIBNOTIFY
Browse files Browse the repository at this point in the history
  • Loading branch information
ravachol committed Aug 26, 2024
1 parent 5dbd82f commit f14d2ef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/kew.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,9 @@ void notifySongSwitch(SongData *currentSongData)
{
if (currentSongData != NULL && currentSongData->hasErrors == 0 && currentSongData->metadata && strlen(currentSongData->metadata->title) > 0)
{
#ifdef USE_LIBNOTIFY
displaySongNotification(currentSongData->metadata->artist, currentSongData->metadata->title, currentSongData->coverArtPath);

#endif
gint64 length = getLengthInMicroSec(currentSongData->duration);

// update mpris
Expand Down
2 changes: 1 addition & 1 deletion src/player.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ typedef struct
} PixelData;
#endif

const char VERSION[] = "2.7.0";
const char VERSION[] = "2.7.1";
const int ABSOLUTE_MIN_WIDTH = 68;
bool visualizerEnabled = true;
bool coverEnabled = true;
Expand Down
2 changes: 2 additions & 0 deletions src/sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,9 @@ int createAudioDevice(UserData *userData)

if (currentSongData != NULL && currentSongData->hasErrors == 0 && currentSongData->metadata && strlen(currentSongData->metadata->title) > 0)
{
#ifdef USE_LIBNOTIFY
displaySongNotification(currentSongData->metadata->artist, currentSongData->metadata->title, currentSongData->coverArtPath);
#endif

gint64 length = getLengthInMicroSec(currentSongData->duration);
// update mpris
Expand Down

0 comments on commit f14d2ef

Please sign in to comment.