From dcb047b6c5a0a3a69fafbd7f686c519e10741470 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Thu, 19 Jun 2025 16:58:29 -0400 Subject: [PATCH] refactor: make ClientApp::handleClientConnected const --- src/lib/deskflow/ClientApp.cpp | 2 +- src/lib/deskflow/ClientApp.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/deskflow/ClientApp.cpp b/src/lib/deskflow/ClientApp.cpp index 6488858d6..fd25ef6f7 100644 --- a/src/lib/deskflow/ClientApp.cpp +++ b/src/lib/deskflow/ClientApp.cpp @@ -241,7 +241,7 @@ void ClientApp::scheduleClientRestart(double retryTime) m_events->addHandler(EventTypes::Timer, timer, [this, timer](const auto &e) { handleClientRestart(e, timer); }); } -void ClientApp::handleClientConnected() +void ClientApp::handleClientConnected() const { LOG((CLOG_NOTE "connected to server")); updateStatus(); diff --git a/src/lib/deskflow/ClientApp.h b/src/lib/deskflow/ClientApp.h index cb4982ed9..cc10d4d8e 100644 --- a/src/lib/deskflow/ClientApp.h +++ b/src/lib/deskflow/ClientApp.h @@ -70,7 +70,7 @@ public: void closeClientScreen(deskflow::Screen *screen); void handleClientRestart(const Event &, EventQueueTimer *vtimer); void scheduleClientRestart(double retryTime); - void handleClientConnected(); + void handleClientConnected() const; void handleClientFailed(const Event &e); void handleClientRefused(const Event &e); void handleClientDisconnected();