We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72d63fa commit d1129f1Copy full SHA for d1129f1
src/widgets/message.py
@@ -244,13 +244,13 @@ def remove_generating_block(self):
244
self.generating_block = None
245
246
def clear(self) -> None:
247
- self.message.main_stack.set_visible_child_name('loading')
248
for child in list(self):
249
if child != self.generating_block:
250
self.remove(child)
251
child.unmap()
252
child.unrealize()
253
- #self.generating_block = None
+ if len(list(self)) + len(list(self.message.image_attachment_container)) + len(list(self.message.attachment_container)) == 0:
+ self.message.main_stack.set_visible_child_name('loading')
254
255
def set_content(self, content:str) -> None:
256
self.clear()
0 commit comments