mirror of
https://github.com/fergalmoran/flameshot.git
synced 2025-12-22 09:51:06 +00:00
Added confirmation for Upload (#2037)
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include "imguruploader.h"
|
||||
#include "pinwidget.h"
|
||||
#include "src/utils/screenshotsaver.h"
|
||||
#include "src/widgets/imguruploaddialog.h"
|
||||
#include "systemnotification.h"
|
||||
#include <QApplication>
|
||||
#include <QClipboard>
|
||||
@@ -148,6 +149,12 @@ void CaptureRequest::exportCapture(const QPixmap& capture)
|
||||
}
|
||||
|
||||
if (m_tasks & UPLOAD) {
|
||||
if (!ConfigHandler().uploadWithoutConfirmation()) {
|
||||
ImgurUploadDialog* dialog = new ImgurUploadDialog();
|
||||
if (dialog->exec() == QDialog::Rejected) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
ImgurUploader* widget = new ImgurUploader(capture);
|
||||
widget->show();
|
||||
widget->activateWindow();
|
||||
|
||||
Reference in New Issue
Block a user