mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-23 08:54:12 +08:00
i'm a moron
This commit is contained in:
parent
ea8e8fe3ed
commit
0ca9e301a0
@ -178,7 +178,11 @@ namespace Host
|
|||||||
for (int retry = 0; retry < 3; ++retry) // retry loop in case something else is using the clipboard
|
for (int retry = 0; retry < 3; ++retry) // retry loop in case something else is using the clipboard
|
||||||
{
|
{
|
||||||
Sleep(10);
|
Sleep(10);
|
||||||
if (auto text = Util::GetClipboardText()) GetThread(clipboard).AddSentence(std::move(text.value()));
|
if (auto text = Util::GetClipboardText())
|
||||||
|
{
|
||||||
|
GetThread(clipboard).AddSentence(std::move(text.value()));
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
throw;
|
throw;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user