diff --git a/GUI/host/util.cpp b/GUI/host/util.cpp index ec142e4..330ca61 100644 --- a/GUI/host/util.cpp +++ b/GUI/host/util.cpp @@ -267,6 +267,7 @@ namespace Util std::optional GetClipboardText() { + Sleep(10); // for some reason this function sometimes fails if I don't wait a little if (!IsClipboardFormatAvailable(CF_UNICODETEXT)) return {}; if (!OpenClipboard(NULL)) return {};