bugfixed: don't display the preview window if not asked

This commit is contained in:
Christophe Meneboeuf 2021-02-16 20:57:44 +01:00
parent 6f39e5a676
commit 119e54eab0
2 changed files with 4 additions and 2 deletions

View File

@ -82,8 +82,10 @@ int main( int argc, char *argv[] )
output.write(reinterpret_cast<const char*>(bytes.get()), bytes->size());
}
const auto bytes = imageHiRes.getBlob();
Display::Window::GetInstance()->display(filepath, bytes->data());
if (preview.getValue()) {
const auto bytes = imageHiRes.getBlob();
Display::Window::GetInstance()->display(filepath, bytes->data());
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB