Skip to content

Commit 2f8b8eb

Browse files
author
martens
committed
Instead of checking whether there are any autonomous modules, we are now checking whether those modules are actually running before displaying the warning message.
1 parent 26da700 commit 2f8b8eb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pyobs_gui/mainwindow.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,16 @@ async def _check_warnings(self) -> None:
312312
"""Checks, whether we got an autonomous module."""
313313
# get all autonomous modules
314314
autonomous_clients = await self.comm.clients_with_interface(IAutonomous)
315+
self.mastermind_running = False
316+
for auto_client in autonomous_clients:
317+
proxy = await self.comm.safe_proxy(
318+
auto_client, IAutonomous
319+
)
320+
if await proxy.is_running():
321+
self.mastermind_running = True
322+
break
315323

316324
# got any?
317-
self.mastermind_running = len(autonomous_clients) > 0
318325
self.labelAutonomousWarning.setVisible(self.mastermind_running)
319326

320327
# get weather modules

0 commit comments

Comments
 (0)