Add independency to fullscreen screenshots

This commit is contained in:
lupoDharkael
2017-06-19 01:41:54 +02:00
parent d6c99a559e
commit 10f27ab2f6
3 changed files with 12 additions and 13 deletions

View File

@@ -42,7 +42,6 @@ void FlameshotDBusAdapter::openCaptureWithPath(QString path) {
}
void FlameshotDBusAdapter::fullScreen(bool toClipboard) {
parent()->createCapture();
QString path = parent()->saveScreenshot(toClipboard);
if (!path.isEmpty()) {
QString saveMessage(tr("Capture saved in "));
@@ -51,7 +50,6 @@ void FlameshotDBusAdapter::fullScreen(bool toClipboard) {
}
void FlameshotDBusAdapter::fullScreenWithPath(QString path, bool toClipboard) {
parent()->createCapture();
QString finalPath = parent()->saveScreenshot(path, toClipboard);
QString saveMessage(tr("Capture saved in "));
parent()->showDesktopNotification(saveMessage + finalPath);