done "TODO use abstract logger" in src/main.cpp (#3044)

This commit is contained in:
Acpear
2023-01-23 01:38:45 +08:00
committed by GitHub
parent 22f61c3614
commit 3b93863cf1

View File

@@ -475,10 +475,10 @@ int main(int argc, char* argv[])
CaptureRequest req(CaptureRequest::SCREEN_MODE, delay, screenNumber);
if (!region.isEmpty()) {
if (region.startsWith("screen")) {
// TODO use abstract logger
QTextStream(stderr) << "The 'screen' command does not support "
"'--region screen<N>'.\n"
"See flameshot --help.\n";
AbstractLogger::error()
<< "The 'screen' command does not support "
"'--region screen<N>'.\n"
"See flameshot --help.\n";
exit(1);
}
req.setInitialSelection(Region().value(region).toRect());