fix: Don't show info banner if there's nothing to show

This commit is contained in:
WerWolv
2024-01-11 20:11:52 +01:00
parent 72f4331703
commit e5c7e52d72

View File

@@ -632,9 +632,11 @@ namespace hex::plugin::builtin {
if (response.isSuccess()) {
const auto &data = response.getData();
TaskManager::doLater([data] {
s_infoBannerTexture = ImGuiExt::Texture(data.data(), data.size(), ImGuiExt::Texture::Filter::Linear);
});
if (!data.empty()) {
TaskManager::doLater([data] {
s_infoBannerTexture = ImGuiExt::Texture(data.data(), data.size(), ImGuiExt::Texture::Filter::Linear);
});
}
}
});
}