Fix issue preventing spectacle from opening

Authored by davidre on Dec 5 2019, 2:53 PM.

Description

Fix issue preventing spectacle from opening

Summary:
Commit dbb1600ce2e09f8d9191b7923a667bf3ea55fdcd attempted to unify the way how
copy and save are handled. However there was one oversight. On image copy the
check whether to quit doesn't happen on button press but after a image is copied.
This includes when the copy is triggered automatically. If the user has automatic
copying of screenshots enabled, spectacle will not open again because upon start
the automatically taken screenshot is copied and spectacle terminates itself.
This introduces a copy method similiar to save() and saveAs() which does
the check and triggers copying.

Test Plan:
Enable automatic copying of screenshots and check quit after save or copy.
Close Spectacle.
Open Spectacle.

Reviewers: Spectacle, ngraham

Reviewed By: Spectacle, ngraham

Subscribers: ngraham

Tags: Spectacle

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

Details

Committed
davidreDec 5 2019, 3:18 PM
Reviewer
Spectacle
Differential Revision
D25765: Fix issue preventing spectacle from opening
Parents
R166:10a632035f6b: GIT_SILENT Upgrade KDE Applications version to 19.11.90.
Branches
Unknown
Tags
Unknown