Skip to content

Commit 83f7ea8

Browse files
🔄 feat: add webcam window reload on account update
Enhanced the user experience by automatically reloading the webcam window after an account update, ensuring the latest account changes are immediately reflected.
1 parent b2ff2ff commit 83f7ea8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

apps/desktop/electron/main.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,9 @@ const getAccount = async (): Promise<Account | null> => {
587587
return null;
588588
}
589589

590+
// Reload webcam window
591+
webcamWindow?.reload();
592+
590593
// Write the response to userAccountFilePath
591594
await writeFilePromise(userAccountFilePath, JSON.stringify({ ...device, lastUpdated: new Date() }));
592595

0 commit comments

Comments
 (0)