From cef1c2fd221e81424195026645386370662ef398 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Thu, 20 Jan 2022 19:13:45 +0100 Subject: feat: Add selected service field to SharedStore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lets the main process see which service is currently selected. Signed-off-by: Kristóf Marussy --- packages/main/src/index.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'packages/main/src/index.ts') diff --git a/packages/main/src/index.ts b/packages/main/src/index.ts index ee89f49..66405ea 100644 --- a/packages/main/src/index.ts +++ b/packages/main/src/index.ts @@ -269,6 +269,9 @@ async function createWindow(): Promise { try { const actionToDispatch = action.parse(rawAction); switch (actionToDispatch.action) { + case 'set-selected-service-id': + store.setSelectedServiceId(actionToDispatch.serviceId); + break; case 'set-browser-view-bounds': store.setBrowserViewBounds(actionToDispatch.browserViewBounds); break; -- cgit v1.2.3-54-g00ecf