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:
parent
8e0df35dd7
commit
73ab4b3fce
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user