From 2ad22b6c7ff702508faabd91c73db6fc8c2e5799 Mon Sep 17 00:00:00 2001 From: 13038267101 Date: Tue, 26 Jul 2022 17:35:01 +0800 Subject: [PATCH] lanxum save --- app/scanner/mainwindow.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/scanner/mainwindow.cpp b/app/scanner/mainwindow.cpp index 92fe6f3f..96867fe5 100644 --- a/app/scanner/mainwindow.cpp +++ b/app/scanner/mainwindow.cpp @@ -81,6 +81,7 @@ MainWindow::MainWindow(QWidget *parent) #elif defined(OEM_LISICHENG) this->setWindowIcon(QIcon(":images/image_rsc/logo/Lanxum_logo.ico")); this->setWindowTitle(tr("LanxumScan")); + auto_save_changes_ = true; #else this->setWindowIcon(QIcon(":images/image_rsc/logo/logo.ico")); this->setWindowTitle(tr("HuaGoScan")); @@ -286,7 +287,14 @@ MainWindow::MainWindow(QWidget *parent) updateActionStatus(); ui->act_autoSave->setChecked(auto_save_changes_); ui->act_autoSave->setText(tr("auto save")); - ui->act_autoSave->setToolTip(tr("when switching pictures, save the edited pictures directly without reminding")); + +#if defined(OEM_LISICHENG) + ui->act_autoSave->setToolTip(tr("when switching pictures, save the edited pictures directly without reminding")); +#else + + ui->act_autoSave->setToolTip(tr("when switching pictures, save the edited pictures directly without reminding")); +#endif + auto_save_info_.index = 0; ui->act_device_log->setEnabled(false);