Commit a3754216 authored by Daniel Brötzmann's avatar Daniel Brötzmann

GroupchatControl: Remove correcting state when minimizing

Minimizing a GroupChatControl should remove the self.correcting state to
avoid being in this state when restoring. Fixes #9580
parent e91ba351
Pipeline #3770 passed with stages
in 2 minutes and 51 seconds
......@@ -2197,6 +2197,14 @@ class GroupchatControl(ChatControlBase):
win.notebook.remove_page(ctrl_page)
control.unparent()
ctrl.parent_win = None
# Stop correcting message when we minimize
if self.correcting:
self.correcting = False
gtkgui_helpers.remove_css_class(
self.msg_textview, 'gajim-msg-correcting')
self.msg_textview.get_buffer().set_text('')
con = app.connections[self.account]
con.get_module('Chatstate').set_chatstate(self.contact, Chatstate.INACTIVE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment