Apply minor cleanups from #21171

This commit is contained in:
Henrik Rydgård
2026-02-09 13:08:44 +01:00
parent a75cdcac0b
commit 4f4de447dd
7 changed files with 20 additions and 23 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ void AsyncImageFileView::DeviceRestored(Draw::DrawContext *draw) {
void AsyncImageFileView::Draw(UIContext &dc) {
using namespace Draw;
if (!texture_ && !textureFailed_ && !filename_.empty()) {
texture_ = std::make_unique<ManagedTexture>(dc.GetDrawContext(), filename_.c_str(), ImageFileType::DETECT, true);
texture_ = std::make_unique<ManagedTexture>(dc.GetDrawContext(), filename_.c_str(), ImageFileType::DETECT);
if (!texture_.get())
textureFailed_ = true;
}