mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 23:34:06 +00:00
Revert "fix: minor code changes related to ctrl+c"
This reverts commit 0f1e107d5f
.
This commit is contained in:
parent
371fb66bdf
commit
c24f57975e
|
@ -933,19 +933,17 @@ void MainWindow::clipboardChange( )
|
||||||
if( scanPopup && cfg.preferences.trackClipboardChanges )
|
if( scanPopup && cfg.preferences.trackClipboardChanges )
|
||||||
{
|
{
|
||||||
scanPopup->translateWordFromClipboard();
|
scanPopup->translateWordFromClipboard();
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Ctrl+C+C
|
//Ctrl+C+C
|
||||||
if(cfg.preferences.enableClipboardHotkey)
|
if(cfg.preferences.enableClipboardHotkey)
|
||||||
{
|
{
|
||||||
if(firstCopyKeyTriggered){
|
if(firstCopyKeyTriggered){
|
||||||
firstCopyKeyTriggered=false;
|
|
||||||
|
|
||||||
if(scanPopup)
|
if(scanPopup)
|
||||||
{
|
{
|
||||||
scanPopup->translateWordFromClipboard();
|
scanPopup->translateWordFromClipboard();
|
||||||
}
|
}
|
||||||
|
firstCopyKeyTriggered=false;
|
||||||
}else{
|
}else{
|
||||||
firstCopyKeyTriggered = true;
|
firstCopyKeyTriggered = true;
|
||||||
QTimer::singleShot(500,this,[this](){
|
QTimer::singleShot(500,this,[this](){
|
||||||
|
|
Loading…
Reference in a new issue