From 48a1e93cfe44aaf18980735827e057fde5e2f6d7 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 12 Oct 2023 15:15:05 +0200 Subject: [PATCH] fix: Tool windows drawing on top of the welcome screen Fixes #1364 --- plugins/builtin/source/content/views/view_tools.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/builtin/source/content/views/view_tools.cpp b/plugins/builtin/source/content/views/view_tools.cpp index a189e5e7f..ffecdc5e0 100644 --- a/plugins/builtin/source/content/views/view_tools.cpp +++ b/plugins/builtin/source/content/views/view_tools.cpp @@ -48,6 +48,10 @@ namespace hex::plugin::builtin { } void ViewTools::drawAlwaysVisible() { + // Make sure the tool windows never get drawn over the welcome screen + if (!ImHexApi::Provider::isValid()) + return; + auto &tools = ContentRegistry::Tools::impl::getEntries(); for (auto iter = tools.begin(); iter != tools.end(); iter++) {