(settings: Record<string, any>)
| 158 | */ |
| 159 | // eslint-disable-next-line @typescript-eslint/no-explicit-any |
| 160 | setItems(settings: Record<string, any>): void { |
| 161 | if (!settings) { |
| 162 | log.error('Cannot change settings without entires: object is undefined or null.') |
| 163 | return |
| 164 | } |
| 165 | |
| 166 | Object.keys(settings).forEach((key) => { |
| 167 | this.setItem(key, settings[key]) |
| 168 | }) |
| 169 | } |
| 170 | |
| 171 | _listenForIpcMain(): void { |
| 172 | ipcMain.on('set-image-folder-path', (newPath) => { |
no test coverage detected