mirror of
https://github.com/fergalmoran/flameshot.git
synced 2025-12-22 09:51:06 +00:00
Fixed race condition with clipboard and system notification on upload (#2053)
This commit is contained in:
@@ -180,9 +180,10 @@ void CaptureRequest::exportCapture(const QPixmap& capture)
|
||||
widget, &ImgurUploader::uploadOk, [widget, tasks](const QUrl& url) {
|
||||
if (ConfigHandler().copyAndCloseAfterUpload()) {
|
||||
if (!(tasks & COPY)) {
|
||||
QApplication::clipboard()->setText(url.toString());
|
||||
SystemNotification().sendMessage(
|
||||
QObject::tr("URL copied to clipboard."));
|
||||
|
||||
QApplication::clipboard()->setText(url.toString());
|
||||
widget->close();
|
||||
} else {
|
||||
widget->showPostUploadDialog();
|
||||
|
||||
Reference in New Issue
Block a user