From 60a96d45e2558cacbae120759a29a494f7a0645f Mon Sep 17 00:00:00 2001 From: smoralis Date: Sun, 13 Sep 2020 18:14:17 +0300 Subject: [PATCH] Fix Load and Play Preset --- profile/themes/footuner/js/quickpresets.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/profile/themes/footuner/js/quickpresets.js b/profile/themes/footuner/js/quickpresets.js index 5dc95d9..04aff9b 100644 --- a/profile/themes/footuner/js/quickpresets.js +++ b/profile/themes/footuner/js/quickpresets.js @@ -46,7 +46,10 @@ function buttonss() { function play(filename) { if (filename) { - let cmd = "\"" + fb.FoobarPath + "foobar2000.exe" + "\"" + "/run_main:\"View/Switch to playlist/Presets Playlist\" /run_main:Edit/Clear /add /immediate /play " + "\"" + filename + "\""; + let cmd = "\"" + fb.FoobarPath + "foobar2000.exe" + "\"" + "/run_main:\"View/Switch to playlist/Presets Playlist\" /run_main:Edit/Clear /add /immediate " + "\"" + filename + "\""; + console.log(cmd); + WshShell.Run(cmd, 0, true); + cmd = "\"" + fb.FoobarPath + "foobar2000.exe" + "\"" + " /play " + "\"" + filename + "\""; console.log(cmd); WshShell.Run(cmd, 0, true); }