Skip to content

Commit c785b5e

Browse files
committed
Regenerate entry index every refresh
1 parent 883a63a commit c785b5e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

โ€Žsrc/cb/src/externalclipboards.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,13 +338,12 @@ void setupGUIClipboardDaemon() {
338338
#elif defined(_WIN32) | defined(_WIN64)
339339

340340
#endif
341-
path = Clipboard(std::string(constants.default_clipboard_name));
342-
343341
while (fs::exists(path)) {
344342
path.getLock();
345343
syncWithGUIClipboard(true);
346344
path.releaseLock();
347345
std::this_thread::sleep_for(std::chrono::milliseconds(2000));
346+
path = Clipboard(std::string(constants.default_clipboard_name));
348347
}
349348

350349
exit(EXIT_SUCCESS);

0 commit comments

Comments
ย (0)