feat: add account updated listener

This commit is contained in:
Zamitto
2025-01-16 00:21:44 -03:00
parent 44fd971c95
commit d866face54
6 changed files with 28 additions and 6 deletions

View File

@@ -178,6 +178,13 @@ export class WindowManager {
authWindow.close();
HydraApi.handleExternalAuth(url);
return;
}
if (url.startsWith("hydralauncher://update-account")) {
authWindow.close();
WindowManager.mainWindow?.webContents.send("on-account-updated");
}
});
}