From 3045365a0f08d8f8f47ab4c6863a9086abe4d732 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Tue, 8 Dec 2020 00:04:42 +0100 Subject: [PATCH] improve reporting --- src/reporting.jsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/reporting.jsx b/src/reporting.jsx index c7d844dd..e46f7014 100644 --- a/src/reporting.jsx +++ b/src/reporting.jsx @@ -3,9 +3,10 @@ import Swal from 'sweetalert2'; import withReactContent from 'sweetalert2-react-content'; import i18n from 'i18next'; -import { isStoreBuild } from './util'; +import { isStoreBuild, isMasBuild, isWindowsStoreBuild } from './util'; const electron = window.require('electron'); // eslint-disable-line +const os = window.require('os'); const ReactSwal = withReactContent(Swal); @@ -16,6 +17,9 @@ export function openSendReportDialog(err, state) { ?

Please send an email to electron.shell.openExternal('mailto:losslesscut@yankee.no')}>losslesscut@yankee.no where you describe what you were doing.

:

Please create an issue at electron.shell.openExternal('https://github.com/mifi/lossless-cut/issues')}>https://github.com/mifi/lossless-cut/issues where you describe what you were doing.

; + const platform = os.platform(); + const version = electron.remote.app.getVersion(); + ReactSwal.fire({ showCloseButton: true, title: i18n.t('Send problem report'), @@ -39,6 +43,11 @@ export function openSendReportDialog(err, state) { }, state, + + platform, + version, + isWindowsStoreBuild, + isMasBuild, }, null, 2)}`}