Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added functionality #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Added functionality #1

wants to merge 1 commit into from

Conversation

edelaf01
Copy link

@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.
s.mtx.Lock()

// Keep checking for clipboard changes on the host machine
for {
Copy link
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
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