Skip to content

Commit

Permalink
fix: Request foucs after user logined
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Feb 20, 2024
1 parent 07ead8c commit a7d3516
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xmcl-runtime/user/pluginOfficialUserApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const pluginOfficialUserApi: LauncherAppPlugin = (app) => {
}
(signal as any)?.addEventListener('abort', abort)
userService.once('microsoft-authorize-code', (err, code) => {
app.controller.requireFocus()
if (err) {
reject(err)
} else {
Expand Down

0 comments on commit a7d3516

Please sign in to comment.