Revert "fix: minor code changes related to ctrl+c"

This reverts commit 0f1e107d5f.
This commit is contained in:
Xiao YiFang 2022-09-11 09:36:45 +08:00
parent 371fb66bdf
commit c24f57975e

View file

@ -933,19 +933,17 @@ void MainWindow::clipboardChange( )
if( scanPopup && cfg.preferences.trackClipboardChanges )
{
scanPopup->translateWordFromClipboard();
return;
}
//Ctrl+C+C
if(cfg.preferences.enableClipboardHotkey)
{
if(firstCopyKeyTriggered){
firstCopyKeyTriggered=false;
if(scanPopup)
{
scanPopup->translateWordFromClipboard();
}
firstCopyKeyTriggered=false;
}else{
firstCopyKeyTriggered = true;
QTimer::singleShot(500,this,[this](){