From c5c531759948f1074565c528e59ba343a7028e3a Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Mon, 8 Jan 2024 12:18:49 +0200 Subject: [PATCH] state-routes: use the correct device id when restoring route properties Fixes: #551 --- src/scripts/device/state-routes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/device/state-routes.lua b/src/scripts/device/state-routes.lua index aeb4f921..ddba0dc2 100644 --- a/src/scripts/device/state-routes.lua +++ b/src/scripts/device/state-routes.lua @@ -218,7 +218,7 @@ store_or_restore_routes_hook = SimpleEventHook { string.format ("new active route(%s) found of device(%s)", route.name, dev_info.name)) - selected_routes [tostring (device_id)] = + selected_routes [tostring (route.device)] = Json.Object { index = route_info.index }:to_string () push_select_routes = true