Link default mail client button to Windows Settings

This commit is contained in:
Ben Gotow 2026-01-09 23:20:57 -06:00
parent dc7371542e
commit 526090ab55

View file

@ -57,11 +57,15 @@ class DefaultMailClientItem extends React.Component<
<div
style={{ marginBottom: 12 }}
className="btn btn-small"
onClick={() =>
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')}
</div>