summaryrefslogtreecommitdiffstats
path: root/pica-client/mainwindow.h
diff options
context:
space:
mode:
authorAnton <anton@picapica.im>2026-08-12 00:19:00 +0400
committerAnton <anton@picapica.im>2026-08-12 00:19:00 +0400
commitcf44fd4cd45ed571a36cda5065158d29bdbe0c7b (patch)
treed81cc22e845850ef2d651ad2cb3555f5b2efea0c /pica-client/mainwindow.h
parent0763c7de460da23923e62f0d8033bc6b8c2888a9 (diff)
downloadpica-pica-cf44fd4cd45ed571a36cda5065158d29bdbe0c7b.tar.gz
pica-pica-cf44fd4cd45ed571a36cda5065158d29bdbe0c7b.zip
pica-client: move SkyNet instance to the separate thread
Diffstat (limited to 'pica-client/mainwindow.h')
-rw-r--r--pica-client/mainwindow.h6
1 files changed, 6 insertions, 0 deletions
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();