Take into account the "private" property when updating the scope toolbutton
This commit is contained in:
parent
ce87bb3ff6
commit
bd3a4ca747
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user