Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit arm translation modal to mac #671

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

sejas
Copy link
Member

@sejas sejas commented Nov 19, 2024

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
@@ -83,7 +83,11 @@ getIpcApi()
window.appGlobals = appGlobals;

// Show warning if running an ARM64 translator
if ( appGlobals.arm64Translation && ! localStorage.getItem( 'dontShowARM64Warning' ) ) {
if (
appGlobals.platform === 'darwin' &&
Copy link
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.

Copy link
Contributor

@wojtekn wojtekn left a comment

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants