socializer should not stop responding when loading conversation buffers

This commit is contained in:
2020-07-23 08:59:30 -05:00
parent c1865b3ecd
commit c43de3e9e5
3 changed files with 9 additions and 8 deletions

View File

@@ -256,10 +256,10 @@ class chatTab(wx.Panel):
old_line = self.history.GetNumberOfLines()#.count("\n")
point = self.history.GetInsertionPoint()
if reverse:
self.history.SetValue(message+"\n"+self.history.GetValue())
wx.CallAfter(self.history.SetValue, message+"\n"+self.history.GetValue())
else:
self.history.AppendText(message+"\n")
self.history.SetInsertionPoint(point)
wx.CallAfter(self.history.AppendText, message+"\n")
wx.CallAfter(self.history.SetInsertionPoint, point)
new_line = self.history.GetNumberOfLines()#.count("\n")
return (old_line, new_line)