From ad127ce2a91bdfa4d00c2fcacef2a4f414921463 Mon Sep 17 00:00:00 2001 From: Arksine Date: Sun, 26 Jul 2020 20:06:26 -0400 Subject: [PATCH] test_client: modify for new fersion of "file_list_changed" notification Signed-off-by: Eric Callahan --- test/client/js/main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/client/js/main.js b/test/client/js/main.js index 02b6507..9cab151 100644 --- a/test/client/js/main.js +++ b/test/client/js/main.js @@ -610,8 +610,10 @@ json_rpc.register_method("notify_klippy_state_changed", handle_klippy_state); function handle_file_list_changed(file_info) { // This event fires when a client has either added or removed // a gcode file. - if (file_list_type == "gcodes") - update_filelist(file_info.filelist); + if (file_list_type == file_info.root) + get_file_list(file_info.root); + console.log("Filelist Changed:"); + console.log(file_info); } json_rpc.register_method("notify_filelist_changed", handle_file_list_changed);