mirror of
https://github.com/Foundry376/Mailspring.git
synced 2026-01-13 12:24:22 +08:00
Link default mail client button to Windows Settings
This commit is contained in:
parent
dc7371542e
commit
526090ab55
1 changed files with 9 additions and 5 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue