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

Copy to clipboard #21

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

Copy to clipboard #21

wants to merge 1 commit into from

Conversation

keltroth
Copy link

My updated proposition to issue #2

this.connect('button_press_event', () => {
copyToClipboard(this.buttonText.get_text());
});

Copy link
Owner

Choose a reason for hiding this comment

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

This could use some logic to not copy things like "Loading..." or "" (an empty string) to the clipboard.

@Josholith
Copy link
Owner

Thanks for the contribution. Ideally this branch would have been done with smaller logical commits. The one commit has both the new feature (copy to clipboard) and a JS refactor (var/let/const) and also some whitespace adjustments. With all the changes in a single commit, if there is a problem later, it is more effort to revert just part of the change (must edit files, can't use git revert). Not a show stopper, but just suggesting it for future contribs.

@Josholith Josholith linked an issue Jun 29, 2023 that may be closed by this pull request
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.

Copy to clipboard on click
2 participants