From 92954327715ed61a8a016b65dc1468ddb216f274 Mon Sep 17 00:00:00 2001 From: yangjiaxuan <171295266@qq.com> Date: Tue, 3 Sep 2024 16:06:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E9=94=AE=E6=89=AB=E6=8F=8F=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E5=8E=BB=E6=8E=89=E4=B9=8B=E5=89=8D=E5=8A=A0=E7=9A=84?= =?UTF-8?q?15=E7=A7=92=E5=BB=B6=E6=97=B6=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/scantool/mainwindow.cpp | 10 +--------- app/scantool/mainwindow.h | 1 - 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/app/scantool/mainwindow.cpp b/app/scantool/mainwindow.cpp index 592baaaf..5e36f845 100644 --- a/app/scantool/mainwindow.cpp +++ b/app/scantool/mainwindow.cpp @@ -25,7 +25,6 @@ MainWindow::MainWindow(QWidget *parent) , m_dlgScanInfo(nullptr) , m_devHandle(nullptr) , m_scanning(false) - , m_isFirstConnectServer(true) , m_dpi(200) , m_scanFileName("") , m_scanImgFmtWriter(nullptr) @@ -1463,14 +1462,7 @@ void MainWindow::on_saneEventCloseDevice(void* devHandle, bool isOnline) } if (isOnline) - { - int time = 5000; - if (m_isFirstConnectServer) - time = 15000; - - m_timerId = this->startTimer(time); - m_isFirstConnectServer = false; - } + m_timerId = this->startTimer(5000); } void MainWindow:: on_pushButtonAdd_clicked() diff --git a/app/scantool/mainwindow.h b/app/scantool/mainwindow.h index a2e9dfd4..7d82ce86 100644 --- a/app/scantool/mainwindow.h +++ b/app/scantool/mainwindow.h @@ -94,7 +94,6 @@ private: QString m_devName; SANE_Handle m_devHandle; bool m_scanning; - bool m_isFirstConnectServer; HGUInt m_dpi; QString m_scanFileName;