From 1f95d881fea60641551c6ede7b26c5053f735665 Mon Sep 17 00:00:00 2001 From: Royce551 Date: Sun, 6 Jun 2021 20:57:05 -0500 Subject: [PATCH] fix crashes on some DEs --- .../Handlers/Integrations/MPRISIntegration.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FRESHMusicPlayer/FRESHMusicPlayer-Avalonia/Handlers/Integrations/MPRISIntegration.cs b/FRESHMusicPlayer/FRESHMusicPlayer-Avalonia/Handlers/Integrations/MPRISIntegration.cs index f2c6500..2ac0114 100644 --- a/FRESHMusicPlayer/FRESHMusicPlayer-Avalonia/Handlers/Integrations/MPRISIntegration.cs +++ b/FRESHMusicPlayer/FRESHMusicPlayer-Avalonia/Handlers/Integrations/MPRISIntegration.cs @@ -184,7 +184,7 @@ namespace FRESHMusicPlayer.Handlers.Integrations var track = new Track(viewModel.Player.FilePath); var x = new Dictionary() { - {"mpris:length", (double)Math.Round(viewModel.Player.TotalTime.TotalMilliseconds * 1000) }, + // {"mpris:length", (double)Math.Round(viewModel.Player?.TotalTime.TotalMilliseconds * 1000) }, {"xesam:artist", track.Artist.Split(Settings.DisplayValueSeparator) }, {"xesam:album", track.Album }, {"xesam:asText", track.Lyrics.UnsynchronizedLyrics },