mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-06 06:58:15 +00:00
Print to stdout from DocExporter only in CLI mode
This commit is contained in:
parent
450742af4b
commit
b6fce0b1df
@ -631,8 +631,10 @@ Doc* DocExporter::exportSheet(Context* ctx, base::task_token& token)
|
||||
Samples samples;
|
||||
captureSamples(samples, token);
|
||||
if (samples.empty()) {
|
||||
Console console;
|
||||
console.printf("No documents to export");
|
||||
if (!ctx->isUIAvailable()) {
|
||||
Console console;
|
||||
console.printf("No documents to export");
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
if (token.canceled())
|
||||
|
Loading…
Reference in New Issue
Block a user