From e5c7e52d726231a9cb1c1e518becd5c6b832ae85 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 11 Jan 2024 20:11:52 +0100 Subject: [PATCH] fix: Don't show info banner if there's nothing to show --- plugins/builtin/source/content/welcome_screen.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/builtin/source/content/welcome_screen.cpp b/plugins/builtin/source/content/welcome_screen.cpp index cbde5a9d1..42e68ef5f 100644 --- a/plugins/builtin/source/content/welcome_screen.cpp +++ b/plugins/builtin/source/content/welcome_screen.cpp @@ -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); + }); + } } }); }