Change the screenshot button to cancel during the timeout

Authored by davidre on Jul 16 2019, 7:35 PM.

Description

Change the screenshot button to cancel during the timeout

Summary:
During the timeout period Spectacle now displays an animation in the taskmanager.
If the windows is unminized and the button clicked again (possibly multiple
times) the window will hide and show and hide again (depending on how often you
clicked) while all the button presses are processed.
To avoid this situation change the button to cancel the currently running
process. It then can also be triggered by the appropiate shortcut.

Test Plan:

  • Unminimize and click the button
  • Let the screenshot finish, the button is in it's original state
  • cancel a region selection

Reviewers: Spectacle, broulik, ngraham

Reviewed By: Spectacle, ngraham

Subscribers: ngraham

Tags: Spectacle

Differential Revision: https://phabricator.kde.org/D22234

Details

Committed
davidreJul 16 2019, 7:44 PM
Reviewer
Spectacle
Differential Revision
D22234: Change the screenshot button to cancel during the timeout
Parents
R166:e2ac222c490d: GIT_SILENT Upgrade KDE Applications version to 19.07.80.
Branches
Unknown
Tags
Unknown
References
tag: v19.07.80