Release KSwitcher v0.6.123 (#69)

Ship the offline tray state and discovery-driven LAN input reconnection. Include the verified Windows x64 package manifest and checksum.
This commit was merged in pull request #69.
This commit is contained in:
agrynco committed 2026-11-20 20:40:01 +02:00
1 parent e7624b620e
commit bdd058f493
13 files changed
+226 -123

No files matched your search

+12 -8
View File
@@ -953,17 +953,21 @@ bool App::updateTray(DWORD action, bool notifyFile)
auto tip = localBuildTitle(L"KSwitcher");
if (trayInput.paired)
{
const bool connected = trayInput.connected == trayInput.paired;
const uint32_t color = trayInput.stopped ? 0xfff16b66 : connected ? 0xff45d58c :
trayInputPulse ? 0xffffc457 : 0xffac7830;
const bool reconnecting = trayInput.reconnecting();
const uint32_t color = trayInput.stopped ? 0xfff16b66 : !trayInput.online ? 0xffa0a4ab :
!reconnecting ? 0xff45d58c : trayInputPulse ? 0xffffc457 : 0xffac7830;
badge = trayInputIcon(icon.hIcon, width, height, color);
if (badge) icon.hIcon = badge;
tip += L" — Mouse & keyboard: ";
if (trayInput.stopped) tip += L"connection stopped";
else if (connected) tip += L"connected";
else if (!trayInput.online) tip += L"all paired PCs offline. Waiting for LAN discovery.";
else
tip += L"reconnecting (" + std::to_wstring(trayInput.connected) + L"/" +
std::to_wstring(trayInput.paired) + L" PCs connected)";
{
tip += reconnecting ? L"reconnecting" : L"connected";
if (trayInput.connected < trayInput.paired)
tip += L" (" + std::to_wstring(trayInput.connected) + L"/" +
std::to_wstring(trayInput.paired) + L" PCs connected)";
}
}
else if (!incomingLanFileCount)
tip = localBuildTitle(L"KSwitcher — keyboard layouts & clipboard");
@@ -988,7 +992,7 @@ void App::refreshTrayInput()
if (state == trayInput) return;
trayInput = state;
trayInputPulse = true;
if (state.connected < state.paired && !state.stopped)
if (state.reconnecting())
SetTimer(window, TrayInputTimer, TrayInputPulseMs, nullptr);
else
KillTimer(window, TrayInputTimer);
@@ -3402,7 +3406,7 @@ LRESULT CALLBACK App::windowProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp)
}
if (wp == TrayInputTimer)
{
if (app->trayInput.connected < app->trayInput.paired && !app->trayInput.stopped)
if (app->trayInput.reconnecting())
{
app->trayInputPulse = !app->trayInputPulse;
app->updateTray(NIM_MODIFY);