Skip to content

Commit

Permalink
Regenerate entry index every refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
Slackadays committed Oct 2, 2023
1 parent 883a63a commit c785b5e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cb/src/externalclipboards.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,13 +338,12 @@ void setupGUIClipboardDaemon() {
#elif defined(_WIN32) | defined(_WIN64)

#endif
path = Clipboard(std::string(constants.default_clipboard_name));

while (fs::exists(path)) {
path.getLock();
syncWithGUIClipboard(true);
path.releaseLock();
std::this_thread::sleep_for(std::chrono::milliseconds(2000));
path = Clipboard(std::string(constants.default_clipboard_name));
}

exit(EXIT_SUCCESS);
Expand Down

0 comments on commit c785b5e

Please sign in to comment.