MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / GraphSettings

Class GraphSettings

service/settings.py:525–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523
524
525class GraphSettings:
526
527 _instance = None
528
529 @classmethod
530 def getInstance(cls):
531 if cls._instance is None:
532 cls._instance = GraphSettings()
533 return cls._instance
534
535 def __init__(self):
536 defaults = {
537 'mobileDroneMode': GraphDpsDroneMode.auto,
538 'ignoreDCR': False,
539 'ignoreResists': True,
540 'ignoreLockRange': True,
541 'applyProjected': True}
542 self.settings = SettingsProvider.getInstance().getSettings('graphSettings', defaults)
543
544 def get(self, type):
545 return self.settings[type]
546
547 def set(self, type, value):
548 self.settings[type] = value
549
550
551class LocaleSettings:

Callers 1

getInstanceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected