Mention all status (enabled/disabled) will be saved in config

This commit is contained in:
Manuel Cortez 2016-10-04 03:55:36 -05:00
parent 6f5ef6d3f1
commit 9bbe325517
3 changed files with 3 additions and 1 deletions

View File

@ -39,3 +39,4 @@ spelling_language = string(default="")
save_followers_in_autocompletion_db = boolean(default=False)
save_friends_in_autocompletion_db = boolean(default=False)
twishort_enabled = boolean(default=False)
mention_all = boolean(default=True)

View File

@ -483,6 +483,7 @@ class baseBufferController(bufferController):
message = messages.reply(self.session, _(u"Reply"), _(u"Reply to %s") % (screen_name,), "", twishort_enabled=self.session.settings["mysc"]["twishort_enabled"], users=users)
if message.message.get_response() == widgetUtils.OK:
self.session.settings["mysc"]["twishort_enabled"] = message.message.long_tweet.GetValue()
self.session.settings["mysc"]["mention_all"] = message.message.mentionAll.GetValue()
text = message.message.get_text()
if message.message.mentionAll.GetValue() == False:
text = u"@{0} {1}".format(screen_name, text)

View File

@ -151,7 +151,7 @@ class reply(tweet):
if len(users) > 1:
# widgetUtils.connect_event(self.message.mentionAll, widgetUtils.CHECKBOX, self.mention_all)
self.message.enable_button("mentionAll")
self.message.mentionAll.SetValue(False)
self.message.mentionAll.SetValue(self.session.settings["mysc"]["mention_all"])
self.message.set_cursor_at_end()
self.text_processor()