mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-23 09:26:27 -06:00
electron-17: supported opening crashes directory from the menu
This commit is contained in:
parent
9f7bc10287
commit
a1c2de3621
@ -66,6 +66,10 @@ const template = [{
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'Open Crashes Directory',
|
||||
click() { electron.shell.showItemInFolder(crashReporter.getCrashDirectoryPath()); }
|
||||
},
|
||||
{
|
||||
type: 'separator'
|
||||
},
|
||||
@ -102,25 +106,6 @@ const template = [{
|
||||
{
|
||||
label: 'Learn More',
|
||||
click() { electron.shell.openExternal('https://www.symphony.com'); }
|
||||
},
|
||||
{
|
||||
label: 'Crash Directory Info',
|
||||
click() {
|
||||
electron.dialog.showMessageBox(null, {
|
||||
type: 'info',
|
||||
buttons: ['Copy', 'OK'],
|
||||
defaultId: 0,
|
||||
cancelId: 1,
|
||||
noLink: true,
|
||||
title: 'Crash Directory Path',
|
||||
message: crashReporter.getCrashDirectoryPath()
|
||||
}, response);
|
||||
function response(buttonId) {
|
||||
if (buttonId === 0) {
|
||||
electron.clipboard.writeText(crashReporter.getCrashDirectoryPath());
|
||||
}
|
||||
}
|
||||
}
|
||||
}]
|
||||
}
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user