fix(windows): remember size not working for SelectionAction window (#12132)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
fullex 2025-12-26 23:43:38 +08:00 committed by GitHub
parent 99b431ec92
commit 401d66f3dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1435,6 +1435,12 @@ export class SelectionService {
}
actionWindow.setBounds({ x, y, width, height })
// [Windows only] Update remembered window size for custom resize
// setBounds() may not trigger the 'resized' event, so we need to update manually
if (this.isRemeberWinSize) {
this.lastActionWindowSize = { width, height }
}
}
/**