Mercurial > libervia-backend
comparison src/memory/params.py @ 1688:59a94105b138
core(params): replaced isConnected by isSessionStarted for profile update signal when a general param is modified
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 26 Nov 2015 16:04:45 +0100 |
parents | 1ed269c5f295 |
children | a12e5e866d25 |
comparison
equal
deleted
inserted
replaced
1687:de9cc4d62a4a | 1688:59a94105b138 |
---|---|
833 | 833 |
834 if node[0] == C.GENERAL: | 834 if node[0] == C.GENERAL: |
835 self.params_gen[(category, name)] = value | 835 self.params_gen[(category, name)] = value |
836 self.storage.setGenParam(category, name, value) | 836 self.storage.setGenParam(category, name, value) |
837 for profile in self.storage.getProfilesList(): | 837 for profile in self.storage.getProfilesList(): |
838 if self.host.isConnected(profile): | 838 if self.host.memory.isSessionStarted(profile): |
839 self.host.bridge.paramUpdate(name, value, category, profile) | 839 self.host.bridge.paramUpdate(name, value, category, profile) |
840 self.host.trigger.point("paramUpdateTrigger", name, value, category, node[0], profile) | 840 self.host.trigger.point("paramUpdateTrigger", name, value, category, node[0], profile) |
841 return defer.succeed(None) | 841 return defer.succeed(None) |
842 | 842 |
843 assert node[0] == C.INDIVIDUAL | 843 assert node[0] == C.INDIVIDUAL |