1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

#190 again, this is better.

This commit is contained in:
SpoinkyNL 2016-11-05 23:52:46 +01:00
parent 8e0df35dd7
commit 73ab4b3fce

View File

@ -230,12 +230,11 @@ namespace Artemis.Modules.Effects.WindowsProfile
{
// Google Play Music
var appData = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
if (!File.Exists(appData + @"\Google Play Music Desktop Player\json_store\playback.json"))
var json = appData + @"\Google Play Music Desktop Player\json_store\playback.json";
if (!File.Exists(json))
return;
dataModel.GooglePlayMusic =
JsonConvert.DeserializeObject<GooglePlayMusic>(
File.ReadAllText(appData + @"\Google Play Music Desktop Player\json_store\playback.json"));
dataModel.GooglePlayMusic = JsonConvert.DeserializeObject<GooglePlayMusic>(File.ReadAllText(json));
}
#endregion