Hi there!
I have some python code that works more or less like this:
def copy_and_hide(self, text: str)
contx = Gdk.ContentProvider.new_for_value(text)
self.clipboard.set_content(contx)
self.set_visible(False)
The problem I’m facing is that sometimes the text
is not copied to the clipboard.
Do you have any suggestions?
Thank you