🐛 check gui exists
This commit is contained in:
parent
0b05c2922b
commit
70671ee10e
1 changed files with 2 additions and 1 deletions
|
|
@ -106,7 +106,8 @@ class Window:
|
|||
|
||||
async def index():
|
||||
async for progress in build_index(self.ide, self.config):
|
||||
await self.gui.send_indexing_progress(progress)
|
||||
if self.gui is not None:
|
||||
await self.gui.send_indexing_progress(progress)
|
||||
|
||||
create_async_task(index(), on_error=self.ide.on_error)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue