修改非当前打开设备重连的状态提示

This commit is contained in:
gb 2022-10-28 16:58:38 +08:00
parent 5853202e74
commit 4340d2db09
1 changed files with 5 additions and 3 deletions

View File

@ -546,7 +546,7 @@ void MainWindow::on_currItemChanged(int index)
bool save = false; bool save = false;
if(auto_save_changes_) if(auto_save_changes_)
{ {
// 鍒囨崲鍥剧墖鏃讹紝鑷姩淇濆瓨缂栬緫杩囩殑鍥惧儚銆傝嫢鎯冲彇娑堬紝璇峰彇娑堝嬀閫夎彍鍗曢」锛氬浘鍍?>鑷姩淇濆瓨 // é<EFBFBD>å¨å´²é<EFBFBD>¥å‰§å¢é<EFBFBD>ƒè®¹ç´<EFBFBD>é·î<EFBFBD>„姩淇濆瓨ç¼æ ¬ç·«æ<EFBFBD>©å©æ®é<EFBFBD>¥æƒ§å„šéŠ†å<EFBFBD>嫢鎯冲彇å¨å ¬ç´<EFBFBD>ç‡å³°å½‡å¨å <EFBFBD>嬀é«å¤Žå½<EFBFBD>é<EFBFBD>—æ¢ã€<EFBFBD>é”氬浘é<EFBFBD>?>é·î<C2B7>„姩淇濆瓨
QString info(tr("Automatically save the edited the edited iamge when switching pictures. To cancel, uncheck the menu item: image-> automatically save")); QString info(tr("Automatically save the edited the edited iamge when switching pictures. To cancel, uncheck the menu item: image-> automatically save"));
m_wndStatusBar->setDeviceStatusInfo(info, false); m_wndStatusBar->setDeviceStatusInfo(info, false);
save = true; save = true;
@ -807,6 +807,8 @@ void MainWindow::on_sane_dev_arrive(QString devName, bool opened)
{ {
// re-connected statu ... // re-connected statu ...
QString info(devName); QString info(devName);
if(!opened && devName.toStdString() != dev_que_.opened_scanner_name())
opened = true;
if(opened) if(opened)
info += tr(" reconnected"); info += tr(" reconnected");
else else
@ -2824,7 +2826,7 @@ void MainWindow::my_url_handler(const QUrl& url)
{ {
info = tr("Roller scanned count has been set to 0."); info = tr("Roller scanned count has been set to 0.");
// +璇烽噸鏂拌繘鍏ュ叧浜庣晫闈互鑾峰彇鏈€鏂板€? info += tr("Please re-enter the Abount screen to obtain the latest value"); // +ç‡çƒ½å™¸é<EFBFBD>æŒç¹˜é<EFBFBD><EFBFBD>ュå<EFBFBD>§æµœåº£æ™«é—ˆî<EFBFBD>­äºé¾å³°å½‡é<EFBFBD>ˆâ¬é<EFBFBD>æ<EFBFBD>¿â? info += tr("Please re-enter the Abount screen to obtain the latest value");
} }
else else
info = tr("Roller scanned count reset failed."); info = tr("Roller scanned count reset failed.");
@ -3703,7 +3705,7 @@ void MainWindow::on_act_driver_log_triggered()
if(statu == SANE_STATUS_UNSUPPORTED) // 璁惧涓嶆敮鎸佽鎿嶄綔 if(statu == SANE_STATUS_UNSUPPORTED) // 璁惧涓嶆敮鎸佽鎿嶄綔
QMessageBox::information(this, windowTitle(), tr("The device does not support this operation")); QMessageBox::information(this, windowTitle(), tr("The device does not support this operation"));
else else
QMessageBox::information(this, windowTitle(), tr("IO error")); // IO閿欒 QMessageBox::information(this, windowTitle(), tr("IO error")); // IO閿欒î‡?
} }
} }