Commit 02f51eb2 authored by Antonio Prcela's avatar Antonio Prcela Committed by Nate Graham
Browse files

Save image to clipboard if --nonotify is used

Summary: BUG: 411263

Test Plan: run spectacle with --nonotify

Reviewers: #spectacle, davidre, ngraham

Reviewed By: #spectacle, davidre, ngraham

Subscribers: ngraham, #spectacle

Tags: #spectacle

Differential Revision: https://phabricator.kde.org/D23723
parent f5a8279f
......@@ -277,7 +277,11 @@ void SpectacleCore::screenshotUpdated(const QPixmap &thePixmap)
// if we notify, we emit allDone only if the user either dismissed the notification or pressed
// the "Open" button, otherwise the app closes before it can react to it.
if (!mNotify) {
if (!mNotify && mCopyToClipboard) {
// Allow some time for clipboard content to transfer if '--nonotify' is used, see Bug #411263
// TODO: Find better solution
QTimer::singleShot(250, this, &SpectacleCore::allDone);
} else if (!mNotify) {
emit allDone();
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment