MCPcopy
hub / github.com/marktext/marktext / setItems

Method setItems

packages/desktop/src/main/dataCenter/index.ts:160–169  ·  view source on GitHub ↗
(settings: Record<string, any>)

Source from the content-addressed store, hash-verified

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) => {

Callers 4

_listenForIpcMainMethod · 0.95
openFolderMethod · 0.45
_createEditorWindowMethod · 0.45
_listenForIpcMainMethod · 0.45

Calls 2

setItemMethod · 0.95
forEachMethod · 0.45

Tested by

no test coverage detected