mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-09 16:51:12 +00:00
Thumbnail display support for JPG/PNG directly
This commit is contained in:
@@ -455,7 +455,7 @@ void RemoteFileGridModel::onThumbnailLoaded(std::uint64_t request, const std::st
|
||||
wxBitmap bitmap;
|
||||
if (result == 0 && !image.empty()) {
|
||||
wxMemoryInputStream stream(image.data(), image.size());
|
||||
wxImage decoded(stream, wxBITMAP_TYPE_PNG);
|
||||
wxImage decoded(stream, wxBITMAP_TYPE_ANY);
|
||||
if (decoded.IsOk())
|
||||
bitmap = wxBitmap(decoded);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user