mirror of
https://github.com/Pixinn/Rgb2Hires.git
synced 2025-01-04 21:32:02 +00:00
bugfixed: don't display the preview window if not asked
This commit is contained in:
parent
6f39e5a676
commit
119e54eab0
@ -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 |
Loading…
Reference in New Issue
Block a user