| 100 | |
| 101 | |
| 102 | class Update: |
| 103 | instance = None |
| 104 | |
| 105 | @staticmethod |
| 106 | def CheckUpdate(callback): |
| 107 | thread = CheckUpdateThread(callback) |
| 108 | pyfalog.debug("Starting Check Update Thread.") |
| 109 | thread.start() |
| 110 | |
| 111 | @classmethod |
| 112 | def getInstance(cls): |
| 113 | if cls.instance is None: |
| 114 | cls.instance = Update() |
| 115 | return cls.instance |