From cf44fd4cd45ed571a36cda5065158d29bdbe0c7b Mon Sep 17 00:00:00 2001 From: Anton Date: Wed, 12 Aug 2026 00:19:00 +0400 Subject: pica-client: move SkyNet instance to the separate thread --- pica-client/mainwindow.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pica-client/mainwindow.h') diff --git a/pica-client/mainwindow.h b/pica-client/mainwindow.h index 6360723..378cdf0 100644 --- a/pica-client/mainwindow.h +++ b/pica-client/mainwindow.h @@ -62,6 +62,12 @@ private: void SetStatus(bool connected); bool status_notifications_hidden; + // Mirrors SkyNet's online/offline state, kept in sync via the + // BecameSelfAware()/LostSelfAwareness() signals instead of querying + // skynet->isSelfAware() synchronously (that accessor was removed since + // SkyNet's state must only ever be read on the thread that owns it). + bool self_aware_cached; + private slots: void set_online(); void set_offline(); -- cgit v1.2.1