fixed ui freezing (WHY DOES THIS LET THE WHOLE TASKBAR FREEZ???

This commit is contained in:
Niklas 2020-02-16 01:48:57 +01:00
parent b9155dd401
commit 0f8e8901fb

View File

@ -92,9 +92,9 @@ void ImgurUploader::handleSend(QString auth, QString mime, QByteArray byteArray,
} }
if (!result.isEmpty()) { if (!result.isEmpty()) {
ioutils::addLogEntry(r, data, result, sf); ioutils::addLogEntry(r, data, result, sf);
utils::toClipboard(result);
notifications::notify(tr("KShare imgur Uploader"), tr("Uploaded to imgur!")); notifications::notify(tr("KShare imgur Uploader"), tr("Uploaded to imgur!"));
notifications::playSound(notifications::Sound::SUCCESS); notifications::playSound(notifications::Sound::SUCCESS);
utils::toClipboard(result);
} else { } else {
ioutils::addLogEntry(r, data, result, sf); ioutils::addLogEntry(r, data, result, sf);
notifications::notify(tr("KShare imgur Uploader "), notifications::notify(tr("KShare imgur Uploader "),