working on fixing

This commit is contained in:
Jeremy Borgman
2020-09-15 07:57:11 -05:00
committed by borgmanJeremy
parent 2d8ad0d516
commit 2722899a46

View File

@@ -18,7 +18,9 @@
#include "capturelauncher.h"
#include "src/core/controller.h"
#include "src/utils/screengrabber.h"
#include "src/utils/screenshotsaver.h"
#include "src/widgets/imagelabel.h"
#include "src/widgets/notificationwidget.h"
#include <QCheckBox>
#include <QComboBox>
@@ -148,6 +150,13 @@ CaptureLauncher::captureTaken(uint id, QPixmap p)
m_imageLabel->setScreenshot(p);
show();
}
auto mode = static_cast<CaptureRequest::CaptureMode>(
m_captureType->currentData().toInt());
if (mode == CaptureRequest::FULLSCREEN_MODE) {
ScreenshotSaver().saveToFilesystemGUI(p);
}
}
void