Skip to content

Limit arm translation modal to mac - #671

Merged
sejas merged 1 commit into
trunkfrom
udpate/limit-arm-translation-alert-to-mac
Nov 20, 2024
Merged

Limit arm translation modal to mac#671
sejas merged 1 commit into
trunkfrom
udpate/limit-arm-translation-alert-to-mac

Conversation

@sejas

@sejas sejas commented Nov 19, 2024

Copy link
Copy Markdown
Member

Related issues

Proposed Changes

  • Let's limit the ARM translation modal to be shown only on MacOS. Currently, we were receiving this alert on some Windows Machines.

Testing Instructions

  • If you have a Win machine with ARM chip, run npm start and observe there is no alert
  • If you have a M1,2,3 Mac, download the x64 build from the CI of this PR and observe the prompt appears.
Screenshot 2024-11-19 at 01 45 58

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?
@sejas sejas self-assigned this Nov 19, 2024
@sejas
sejas requested a review from a team November 19, 2024 01:46
Comment thread src/renderer.ts
// Show warning if running an ARM64 translator
if ( appGlobals.arm64Translation && ! localStorage.getItem( 'dontShowARM64Warning' ) ) {
if (
appGlobals.platform === 'darwin' &&

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I considered limiting it to appGlobals.platform !== 'win32', but I decided to exclude Linux as well.

@wojtekn wojtekn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have a machine to test it, but the code change looks correct. Nice catch!

@sejas
sejas merged commit 9c7dc52 into trunk Nov 20, 2024
@sejas
sejas deleted the udpate/limit-arm-translation-alert-to-mac branch November 20, 2024 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants