Saves value for mention all button only when the checkbox is shown

This commit is contained in:
Manuel Cortez 2017-03-25 07:54:28 -06:00
parent cced182063
commit a9dc188c4b
2 changed files with 4 additions and 2 deletions

View File

@ -516,7 +516,8 @@ class baseBufferController(bufferController):
if message.message.get_response() == widgetUtils.OK:
params = {"_sound": "reply_send.ogg", "in_reply_to_status_id": id,}
self.session.settings["mysc"]["twishort_enabled"] = message.message.long_tweet.GetValue()
self.session.settings["mysc"]["mention_all"] = message.message.mentionAll.GetValue()
if len(message.users) > 0:
self.session.settings["mysc"]["mention_all"] = message.message.mentionAll.GetValue()
text = message.message.get_text()
if twishort_enabled == False:
excluded_ids = message.get_ids()

View File

@ -147,7 +147,8 @@ class tweet(basicTweet):
class reply(tweet):
def __init__(self, session, title, caption, text, twishort_enabled, users=[], ids=[]):
super(reply, self).__init__(session, title, caption, text, twishort_enabled, messageType="reply", users=users)
self.ids = ids
self.ids = ids
self.users = users
if len(users) > 0:
widgetUtils.connect_event(self.message.mentionAll, widgetUtils.CHECKBOX, self.mention_all)
self.message.enable_button("mentionAll")