Updater debug utility

This commit is contained in:
Fedor Indutny 2021-06-30 14:27:18 -07:00 committed by GitHub
parent e7e9021e3f
commit 759ced3417
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 409 additions and 15 deletions

View file

@ -24,6 +24,7 @@ type OptionsType = {
openSupportPage: () => unknown;
setupAsNewDevice: () => unknown;
setupAsStandalone: () => unknown;
forceUpdate: () => unknown;
showAbout: () => unknown;
showDebugLog: () => unknown;
showKeyboardShortcuts: () => unknown;
@ -52,6 +53,7 @@ export const createTemplate = (
platform,
setupAsNewDevice,
setupAsStandalone,
forceUpdate,
showAbout,
showDebugLog,
showKeyboardShortcuts,
@ -162,6 +164,14 @@ export const createTemplate = (
},
]
: []),
...(devTools && platform !== 'linux'
? [
{
label: messages.forceUpdate.message,
click: forceUpdate,
},
]
: []),
],
},
{