MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / __init__

Method __init__

service/settings.py:481–496  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

479 return cls._instance
480
481 def __init__(self):
482 # mode
483 # 0 - Do not show
484 # 1 - Show
485 ContextMenuDefaultSettings = {
486 "ammoPattern" : 1,
487 "changeAffectingSkills" : 1,
488 "metaSwap" : 1,
489 "project" : 1,
490 "moduleFill" : 1,
491 "spoolup" : 1,
492 "additionsCopyPaste" : 1,
493 "cargoFill" : 1,
494 }
495
496 self.ContextMenuDefaultSettings = SettingsProvider.getInstance().getSettings("pyfaContextMenuSettings", ContextMenuDefaultSettings)
497
498 def get(self, type):
499 return self.ContextMenuDefaultSettings[type]

Callers

nothing calls this directly

Calls 2

getSettingsMethod · 0.80
getInstanceMethod · 0.45

Tested by

no test coverage detected