Take into account the "private" property when updating the scope toolbutton

This commit is contained in:
Tomeu Vizoso 2010-07-09 17:31:50 +02:00
parent ce87bb3ff6
commit bd3a4ca747

View File

@ -149,7 +149,8 @@ class ShareButton(RadioMenuButton):
def __update_share_cb(self, activity): def __update_share_cb(self, activity):
self.neighborhood.handler_block(self._neighborhood_handle) self.neighborhood.handler_block(self._neighborhood_handle)
try: try:
if activity.get_shared(): if activity.shared_activity is not None and \
not activity.shared_activity.props.private:
self.private.props.sensitive = False self.private.props.sensitive = False
self.neighborhood.props.sensitive = False self.neighborhood.props.sensitive = False
self.neighborhood.props.active = True self.neighborhood.props.active = True