Skip to content

Commit 0b61d22

Browse files
committed
Increase duplicate clipboard update treshhold
The windows screenshot app issues two consecutive updates of clipboard data within some 50 to 400 ms. In batch mode we ignore the second update.
1 parent 771d0f5 commit 0b61d22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PasteIntoFile/Dialog.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ private void ClipboardChanged(Object sender, SharpClipboard.ClipboardChangedEven
223223
if (Settings.Default.continuousMode) {
224224
var ignore = false;
225225
// ignore duplicate updates within 100ms
226-
ignore |= (clipData.Timestamp - previousClipboardTimestamp).TotalMilliseconds <= 100;
226+
ignore |= (clipData.Timestamp - previousClipboardTimestamp).TotalMilliseconds <= 500;
227227
// ignore internal updates due to clipboard patching
228228
ignore |= Clipboard.ContainsData(Program.PATCHED_CLIPBOARD_MAGIC);
229229

0 commit comments

Comments
 (0)