Added feature & config to auto-save a screenshot after copying it
This commit is contained in:
@@ -32,6 +32,11 @@ void ScreenshotSaver::saveToClipboard(const QPixmap &capture) {
|
||||
SystemNotification().sendMessage(
|
||||
QObject::tr("Capture saved to clipboard"));
|
||||
QApplication::clipboard()->setPixmap(capture);
|
||||
if (ConfigHandler().saveAfterCopyValue()) {
|
||||
if (!ConfigHandler().saveAfterCopyPathValue().isEmpty()) {
|
||||
saveToFilesystem(capture, ConfigHandler().saveAfterCopyPathValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool ScreenshotSaver::saveToFilesystem(const QPixmap &capture,
|
||||
|
||||
Reference in New Issue
Block a user