Make the share button insensitive when max_participants is set to 1
This commit is contained in:
parent
d02ab6bb9a
commit
10b5a30bc9
@ -1,4 +1,4 @@
|
|||||||
# Copyright (C) 2009, Aleksey Lim
|
# Copyright (C) 2009, Aleksey Lim, Simon Schampijer
|
||||||
#
|
#
|
||||||
# This library is free software; you can redistribute it and/or
|
# This library is free software; you can redistribute it and/or
|
||||||
# modify it under the terms of the GNU Lesser General Public
|
# modify it under the terms of the GNU Lesser General Public
|
||||||
@ -99,6 +99,8 @@ class ShareButton(RadioMenuButton):
|
|||||||
|
|
||||||
RadioMenuButton.__init__(self, **kwargs)
|
RadioMenuButton.__init__(self, **kwargs)
|
||||||
self.props.palette = palette
|
self.props.palette = palette
|
||||||
|
if activity.max_participants == 1:
|
||||||
|
self.props.sensitive = False
|
||||||
|
|
||||||
def __neighborhood_clicked_cb(self, button, activity):
|
def __neighborhood_clicked_cb(self, button, activity):
|
||||||
activity.share()
|
activity.share()
|
||||||
|
Loading…
Reference in New Issue
Block a user