Upgrade Prettier to 2.4.1
This commit is contained in:
parent
f204784afe
commit
5619eeca83
176 changed files with 1961 additions and 2465 deletions
25
app/main.ts
25
app/main.ts
|
@ -1436,9 +1436,8 @@ app.on('ready', async () => {
|
|||
let getMediaAccessStatus;
|
||||
// This function is not supported on Linux, so we have a fallback.
|
||||
if (systemPreferences.getMediaAccessStatus) {
|
||||
getMediaAccessStatus = systemPreferences.getMediaAccessStatus.bind(
|
||||
systemPreferences
|
||||
);
|
||||
getMediaAccessStatus =
|
||||
systemPreferences.getMediaAccessStatus.bind(systemPreferences);
|
||||
} else {
|
||||
getMediaAccessStatus = noop;
|
||||
}
|
||||
|
@ -1814,18 +1813,18 @@ ipc.on(
|
|||
}
|
||||
);
|
||||
|
||||
ipc.on('update-system-tray-setting', (
|
||||
_event,
|
||||
rawSystemTraySetting /* : Readonly<unknown> */
|
||||
) => {
|
||||
const systemTraySetting = parseSystemTraySetting(rawSystemTraySetting);
|
||||
systemTraySettingCache.set(systemTraySetting);
|
||||
ipc.on(
|
||||
'update-system-tray-setting',
|
||||
(_event, rawSystemTraySetting /* : Readonly<unknown> */) => {
|
||||
const systemTraySetting = parseSystemTraySetting(rawSystemTraySetting);
|
||||
systemTraySettingCache.set(systemTraySetting);
|
||||
|
||||
if (systemTrayService) {
|
||||
const isEnabled = shouldMinimizeToSystemTray(systemTraySetting);
|
||||
systemTrayService.setEnabled(isEnabled);
|
||||
if (systemTrayService) {
|
||||
const isEnabled = shouldMinimizeToSystemTray(systemTraySetting);
|
||||
systemTrayService.setEnabled(isEnabled);
|
||||
}
|
||||
}
|
||||
});
|
||||
);
|
||||
|
||||
ipc.on('close-about', () => {
|
||||
if (aboutWindow) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue