(self)
| 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] |
nothing calls this directly
no test coverage detected