Add option to close flameshot after every capture

This commit is contained in:
lupoDharkael
2019-04-21 20:03:40 +02:00
parent 7ee9a3f173
commit cbb4727786
5 changed files with 40 additions and 0 deletions

View File

@@ -244,10 +244,17 @@ void Controller::handleCaptureTaken(uint id, QPixmap p) {
it.value().exportCapture(p);
m_requestMap.erase(it);
}
if (ConfigHandler().closeAfterScreenshotValue()) {
QApplication::quit();
}
}
void Controller::handleCaptureFailed(uint id) {
m_requestMap.remove(id);
if (ConfigHandler().closeAfterScreenshotValue()) {
QApplication::quit();
}
}
void Controller::doLater(int msec, QObject *receiver, lambda func) {