From b3001e71b760390164255619d86a4a28d13012b8 Mon Sep 17 00:00:00 2001 From: wh201906 Date: Mon, 13 Feb 2023 09:49:56 +0800 Subject: [PATCH] Disable disconnection detection on Linux/macOS --- src/ui/mainwindow.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp index 6434627..e42fcaf 100644 --- a/src/ui/mainwindow.cpp +++ b/src/ui/mainwindow.cpp @@ -1113,8 +1113,16 @@ void MainWindow::uiInit() ui->Set_Client_forceEnabledBox->setChecked(keepButtonsEnabled); settings->endGroup(); + // the disconnect detection doesn't work well on Linux/macOS + // So it should be disabled on these platforms + // https://github.com/wh201906/Proxmark3GUI/issues/22 + // #22, #26, #40, #41 settings->beginGroup("Client_keepClientActive"); +#ifdef Q_OS_WIN keepClientActive = settings->value("state", false).toBool(); +#else + keepClientActive = settings->value("state", true).toBool(); +#endif ui->Set_Client_keepClientActiveBox->setChecked(keepClientActive); settings->endGroup();