Add desktop notification about failed captures

This commit is contained in:
lupoDharkael
2017-11-10 19:56:59 +01:00
parent bb6ac04d60
commit 485bc58b9d
3 changed files with 3 additions and 3 deletions

View File

@@ -87,6 +87,7 @@ CaptureWidget::CaptureWidget(const uint id, const QString &forcedSavePath,
bool ok = true;
QPixmap fullScreenshot(ScreenGrabber().grabEntireDesktop(ok));
if(!ok) {
SystemNotification().sendMessage(tr("Unable to capture screen"));
this->close();
}
m_screenshot = new Screenshot(fullScreenshot, this);