Skip to content

Added functionality#1

Open
edelaf01 wants to merge 1 commit into
aksdb:masterfrom
edelaf01:master
Open

Added functionality#1
edelaf01 wants to merge 1 commit into
aksdb:masterfrom
edelaf01:master

Conversation

@edelaf01
Copy link
Copy Markdown

@edelaf01 edelaf01 commented Apr 2, 2023

It now detects any clipboard changes ,deletion being the main focus . Use case being ,for example, a password manager such as keepass and its auto-delete password from clipboard function.

It now detects any clipboard changes ,deletion being the main focus . Use case being ,for example, a password manager such as keepass and its auto-delete password from clipboard function.
Comment thread sync.go
s.mtx.Lock()

// Keep checking for clipboard changes on the host machine
for {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem to have any exit condition. Previously, when we closed the clipboard, the watcher channel would be closed as well, therefore exiting the loop.

Copy link
Copy Markdown
Author

@edelaf01 edelaf01 Apr 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True , mb. Also i noticed that i want two things going at the same time and is making my brain work. If i wanted to notify the client that it may need to wait should i ask it to wait a set amount of time then ? Unless it gets updated then it just restarts the loop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants