From 0046aa256bbd74fa4c273ff96c01acab78040817 Mon Sep 17 00:00:00 2001 From: Nikhil Narayana Date: Thu, 10 Aug 2023 17:05:17 -0700 Subject: [PATCH] fix: mark netplay dolphin as open after hitting play --- src/renderer/lib/dolphin/useDolphinActions.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/renderer/lib/dolphin/useDolphinActions.ts b/src/renderer/lib/dolphin/useDolphinActions.ts index 651cbb27e..f6adbc534 100644 --- a/src/renderer/lib/dolphin/useDolphinActions.ts +++ b/src/renderer/lib/dolphin/useDolphinActions.ts @@ -87,7 +87,12 @@ export const useDolphinActions = (dolphinService: DolphinService) => { return; } - dolphinService.launchNetplayDolphin({ bootToCss }).catch(showError); + dolphinService + .launchNetplayDolphin({ bootToCss }) + .then(() => { + setDolphinOpened(DolphinLaunchType.NETPLAY); + }) + .catch(showError); }, [getInstallStatus, dolphinService, showError], );