Only process clipboard change when scanning enabled

This commit is contained in:
shenleban tongying 2022-11-19 12:08:57 -05:00
parent 20b435053f
commit a4359bef3c

View file

@ -914,7 +914,7 @@ MainWindow::MainWindow( Config::Class & cfg_ ):
void MainWindow::clipboardChange( )
{
qDebug() << "clipboard change ," << scanPopup.get();
if( scanPopup )
if( scanPopup && enableScanningAction->isChecked() )
{
scanPopup->translateWordFromClipboard();
}