talonvoice / beta

Issue tracker for the private Talon Beta
10 stars 0 forks source link

`clip.revert` doesn't clean up on error #131

Closed jcaw closed 3 years ago

jcaw commented 3 years ago

This will not leave "Temporary value" in the clipboard:

with clip.revert():
    clip.set("Temporary value")
    # raise RuntimeError()

But this will:

with clip.revert():
    clip.set("Temporary value")
    raise RuntimeError()

The same seems to happen for clip.capture

(Only tested on Windows)

lunixbochs commented 3 years ago

should be fixed in next beta

lunixbochs commented 3 years ago

confirmed fixed