refactor: Clean lint errors and organise files
This commit is contained in:
@@ -36,6 +36,7 @@ import {
|
||||
} from '../update/desktop-updater';
|
||||
import { consumePendingDeepLink } from '../app/deep-links';
|
||||
import { synchronizeAutoStartSetting } from '../app/auto-start';
|
||||
import { getIdleState } from '../idle/idle-monitor';
|
||||
import {
|
||||
getMainWindow,
|
||||
getWindowIconPath,
|
||||
@@ -557,16 +558,22 @@ export function setupSystemHandlers(): void {
|
||||
}
|
||||
|
||||
switch (command) {
|
||||
case 'cut': webContents.cut(); break;
|
||||
case 'copy': webContents.copy(); break;
|
||||
case 'paste': webContents.paste(); break;
|
||||
case 'selectAll': webContents.selectAll(); break;
|
||||
case 'cut':
|
||||
webContents.cut();
|
||||
break;
|
||||
case 'copy':
|
||||
webContents.copy();
|
||||
break;
|
||||
case 'paste':
|
||||
webContents.paste();
|
||||
break;
|
||||
case 'selectAll':
|
||||
webContents.selectAll();
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
||||
ipcMain.handle('get-idle-state', () => {
|
||||
const { getIdleState } = require('../idle/idle-monitor') as typeof import('../idle/idle-monitor');
|
||||
|
||||
return getIdleState();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user