mirror of
https://github.com/fergalmoran/flameshot.git
synced 2025-12-22 09:51:06 +00:00
done "TODO use abstract logger" in src/main.cpp (#3044)
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user