fix: clipboard changes isn't ignored

This commit is contained in:
shenleban tongying 2022-12-28 21:19:58 -05:00
parent c1902b29c8
commit a28aec3c9f

View file

@ -890,11 +890,18 @@ void MainWindow::clipboardChange( QClipboard::Mode m)
if(m == QClipboard::Selection){ if(m == QClipboard::Selection){
// Multiple ways to stoping a word from showing up when selecting // Multiple ways to stopping a word from showing up when selecting
// Explictly disabled on preferences // Explicitly disabled on preferences
if(!cfg.preferences.trackSelectionScan) return; if(!cfg.preferences.trackSelectionScan) return;
// Explicitly disabled on preferences to ignore gd's own selection
if( cfg.preferences.ignoreOwnClipboardChanges
&& QApplication::clipboard()->ownsSelection() ){
return ;
}
// Keyboard Modifier // Keyboard Modifier
if(cfg.preferences.enableScanPopupModifiers && if(cfg.preferences.enableScanPopupModifiers &&
!KeyboardState::checkModifiersPressed(cfg.preferences.scanPopupModifiers)){ !KeyboardState::checkModifiersPressed(cfg.preferences.scanPopupModifiers)){