Added screenshot command
This commit is contained in:
@@ -90,6 +90,10 @@ void FractalInspectorApp::ParseCmdLineMessage(const std::string &message) {
|
||||
|
||||
}
|
||||
|
||||
if (misc::string_matches(cmd, {"screenshot", "screeny", "capture"})) {
|
||||
return TakeScreenshot();
|
||||
}
|
||||
|
||||
console->Log(std::format("No such command: {}", cmd), Colors::Red);
|
||||
}
|
||||
|
||||
@@ -725,4 +729,6 @@ void FractalInspectorApp::TakeScreenshot() {
|
||||
|
||||
file.close();
|
||||
|
||||
console->Log(std::format("Took screenshot: {}", filename.str()));
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user