patch: re apply time limited api in common clipboard

when no content in text clipboard, it will wait forever

Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
This commit is contained in:
ClSlaid committed 2023-10-29 12:07:21 +08:00
1 parent 0b82874a52
commit fd1dc15576
2 files changed
+2 -4

No files matched your search

+1 -1
View File
@@ -87,7 +87,7 @@ impl ClipboardContext {
let clip = self.clip;
let prop = self.prop;
const TIMEOUT: std::time::Duration = std::time::Duration::from_millis(100);
const TIMEOUT: std::time::Duration = std::time::Duration::from_millis(120);
let text_content = get_clipboard()?
.load(clip, self.string_getter, prop, TIMEOUT)