mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-02-04 09:37:32 +00:00
Fix broken copy on upload (#2246)
* Fix broken copy on upload Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com> * Add translation Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
This commit is contained in:
@@ -610,9 +610,8 @@ void Controller::exportCapture(QPixmap capture,
|
||||
widget, &ImgUploaderBase::uploadOk, [=](const QUrl& url) {
|
||||
if (ConfigHandler().copyAndCloseAfterUpload()) {
|
||||
if (!(tasks & CR::COPY)) {
|
||||
AbstractLogger::info()
|
||||
<< QObject::tr("URL copied to clipboard.");
|
||||
QApplication::clipboard()->setText(url.toString());
|
||||
FlameshotDaemon::copyToClipboard(
|
||||
url.toString(), tr("URL copied to clipboard."));
|
||||
widget->close();
|
||||
} else {
|
||||
widget->showPostUploadDialog();
|
||||
|
||||
Reference in New Issue
Block a user