mirror of
https://github.com/desktop/desktop
synced 2024-09-12 21:01:16 +00:00
Enable "Show notification" debug menu for test builds
This commit is contained in:
parent
44f57dff28
commit
09aab3a2d5
|
@ -540,10 +540,6 @@ export function buildDefaultMenu({
|
|||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
label: 'Show notification',
|
||||
click: emit('test-show-notification'),
|
||||
},
|
||||
{
|
||||
label: 'Prune branches',
|
||||
click: emit('test-prune-branches'),
|
||||
|
@ -551,6 +547,13 @@ export function buildDefaultMenu({
|
|||
)
|
||||
}
|
||||
|
||||
if (__RELEASE_CHANNEL__ === 'development' || __RELEASE_CHANNEL__ === 'test') {
|
||||
helpItems.push({
|
||||
label: 'Show notification',
|
||||
click: emit('test-show-notification'),
|
||||
})
|
||||
}
|
||||
|
||||
if (__DARWIN__) {
|
||||
template.push({
|
||||
role: 'help',
|
||||
|
|
|
@ -484,7 +484,10 @@ export class App extends React.Component<IAppProps, IAppState> {
|
|||
}
|
||||
|
||||
private testShowNotification() {
|
||||
if (!__DEV__) {
|
||||
if (
|
||||
__RELEASE_CHANNEL__ !== 'development' &&
|
||||
__RELEASE_CHANNEL__ !== 'test'
|
||||
) {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue