MCPcopy
hub / github.com/CopyTranslator/CopyTranslator / restoreMultiDefault

Method restoreMultiDefault

src/main/controller.ts:59–64  ·  view source on GitHub ↗
(optionType: MenuActionType | Category)

Source from the content-addressed store, hash-verified

57 }
58
59 restoreMultiDefault(optionType: MenuActionType | Category) {
60 const keys = this.action.getKeys(optionType);
61 for (const key of keys) {
62 this.config.reset(key as Identifier); //带参时仅重置特定项
63 }
64 }
65
66 enumerateLayouts(isLeft: boolean) {
67 const index = layoutTypes.findIndex(

Callers 1

handleMethod · 0.95

Calls 2

getKeysMethod · 0.80
resetMethod · 0.80

Tested by

no test coverage detected