diff --git a/app/internal_packages/preferences/lib/tabs/workspace-section.tsx b/app/internal_packages/preferences/lib/tabs/workspace-section.tsx index 039ebf5c9..65cb72135 100644 --- a/app/internal_packages/preferences/lib/tabs/workspace-section.tsx +++ b/app/internal_packages/preferences/lib/tabs/workspace-section.tsx @@ -57,11 +57,15 @@ class DefaultMailClientItem extends React.Component<
- shell.openExternal( - 'https://community.getmailspring.com/t/choose-mailspring-as-the-default-mail-client-on-linux/191' - ) - } + onClick={() => { + if (process.platform === 'win32') { + helper.registerForURLScheme('mailto'); + } else { + shell.openExternal( + 'https://community.getmailspring.com/t/choose-mailspring-as-the-default-mail-client-on-linux/191' + ); + } + }} > {localized('Use Mailspring as default mail client')}