Format all files with prettier

This commit is contained in:
Andy Balaam
2022-12-15 11:52:12 +00:00
parent 040344eeab
commit 0faac52dae
67 changed files with 1758 additions and 1791 deletions
+8 -6
View File
@@ -42,17 +42,19 @@ export const Settings: Record<string, Setting> = {
global.store.set("warnBeforeExit", value);
},
},
"Electron.alwaysShowMenuBar": { // not supported on macOS
"Electron.alwaysShowMenuBar": {
// not supported on macOS
async read(): Promise<any> {
return !global.mainWindow!.autoHideMenuBar;
},
async write(value: any): Promise<void> {
global.store.set('autoHideMenuBar', !value);
global.store.set("autoHideMenuBar", !value);
global.mainWindow!.autoHideMenuBar = !value;
global.mainWindow!.setMenuBarVisibility(value);
},
},
"Electron.showTrayIcon": { // not supported on macOS
"Electron.showTrayIcon": {
// not supported on macOS
async read(): Promise<any> {
return tray.hasTray();
},
@@ -63,15 +65,15 @@ export const Settings: Record<string, Setting> = {
} else {
tray.destroy();
}
global.store.set('minimizeToTray', value);
global.store.set("minimizeToTray", value);
},
},
"Electron.enableHardwareAcceleration": {
async read(): Promise<any> {
return !global.store.get('disableHardwareAcceleration', false);
return !global.store.get("disableHardwareAcceleration", false);
},
async write(value: any): Promise<void> {
global.store.set('disableHardwareAcceleration', !value);
global.store.set("disableHardwareAcceleration", !value);
},
},
};