mirror of
https://github.com/mifi/lossless-cut.git
synced 2024-11-22 02:12:30 +01:00
improve help menu
and error reporting
This commit is contained in:
parent
1fa5181a8e
commit
1387d02b1e
@ -363,25 +363,30 @@ module.exports = ({ app, mainWindow, newVersion, isStoreBuild }) => {
|
||||
label: esc(t('Troubleshooting')),
|
||||
click() { electron.shell.openExternal('https://mifi.no/losslesscut/troubleshooting'); },
|
||||
},
|
||||
{
|
||||
label: esc(t('Learn More')),
|
||||
click() { electron.shell.openExternal(homepage); },
|
||||
},
|
||||
{
|
||||
label: esc(t('Licenses')),
|
||||
click() { electron.shell.openExternal(licensesPage); },
|
||||
},
|
||||
{ type: 'separator' },
|
||||
{
|
||||
label: esc(t('Keyboard & mouse shortcuts')),
|
||||
click() {
|
||||
mainWindow.webContents.send('toggleKeyboardShortcuts');
|
||||
},
|
||||
},
|
||||
{
|
||||
label: esc(t('Learn More')),
|
||||
click() { electron.shell.openExternal(homepage); },
|
||||
},
|
||||
{ type: 'separator' },
|
||||
{
|
||||
label: esc(t('Report an error')),
|
||||
click() { mainWindow.webContents.send('openSendReportDialog'); },
|
||||
},
|
||||
{
|
||||
label: esc(t('Feature request')),
|
||||
click() { electron.shell.openExternal('https://github.com/mifi/lossless-cut/issues'); },
|
||||
},
|
||||
{ type: 'separator' },
|
||||
{
|
||||
label: esc(t('Licenses')),
|
||||
click() { electron.shell.openExternal(licensesPage); },
|
||||
},
|
||||
...(process.platform !== 'darwin' ? [{ role: 'about', label: esc(t('About LosslessCut')) }] : []),
|
||||
],
|
||||
},
|
||||
|
@ -15,11 +15,24 @@ const { app } = window.require('@electron/remote');
|
||||
|
||||
const ReactSwal = withReactContent(Swal);
|
||||
|
||||
const linkStyle = { fontWeight: 'bold', cursor: 'pointer' };
|
||||
|
||||
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
export function openSendReportDialog(err, state) {
|
||||
const reportInstructions = isStoreBuild
|
||||
? <p><Trans>Please send an email to <span style={{ fontWeight: 'bold', cursor: 'pointer' }} role="button" onClick={() => electron.shell.openExternal('mailto:losslesscut@mifi.no')}>losslesscut@mifi.no</span> where you describe what you were doing.</Trans></p>
|
||||
: <p><Trans>Please create an issue at <span style={{ fontWeight: 'bold', cursor: 'pointer' }} role="button" onClick={() => electron.shell.openExternal('https://github.com/mifi/lossless-cut/issues')}>https://github.com/mifi/lossless-cut/issues</span> where you describe what you were doing.</Trans></p>;
|
||||
? (
|
||||
<p><Trans>Please send an email to <span style={linkStyle} role="button" onClick={() => electron.shell.openExternal('mailto:losslesscut@mifi.no')}>losslesscut@mifi.no</span> where you describe what you were doing.</Trans></p>
|
||||
) : (
|
||||
<Trans>
|
||||
<p>
|
||||
If you're having a problem or question about LosslessCut, please first check the links in the <b>Help</b> menu. If you cannot find any resolution, you may ask a question in <span style={linkStyle} role="button" onClick={() => electron.shell.openExternal('https://github.com/mifi/lossless-cut/discussions')}>GitHub discussions</span> or on <span style={linkStyle} role="button" onClick={() => electron.shell.openExternal('https://github.com/mifi/lossless-cut')}>Discord.</span>
|
||||
</p>
|
||||
<p>
|
||||
If you believe that you found a bug in LosslessCut, you may <span style={linkStyle} role="button" onClick={() => electron.shell.openExternal('https://github.com/mifi/lossless-cut/issues')}>report a bug</span>.
|
||||
</p>
|
||||
</Trans>
|
||||
);
|
||||
|
||||
const platform = os.platform();
|
||||
const version = app.getVersion();
|
||||
@ -47,6 +60,7 @@ export function openSendReportDialog(err, state) {
|
||||
ReactSwal.fire({
|
||||
showCloseButton: true,
|
||||
title: i18n.t('Send problem report'),
|
||||
showConfirmButton: false,
|
||||
html: (
|
||||
<div style={{ textAlign: 'left', overflow: 'auto', maxHeight: 300, overflowY: 'auto' }}>
|
||||
{reportInstructions}
|
||||
|
Loading…
Reference in New Issue
Block a user