diff --git a/main/gui/source/window/window.cpp b/main/gui/source/window/window.cpp index 5b4ed83a5..830bb3b27 100644 --- a/main/gui/source/window/window.cpp +++ b/main/gui/source/window/window.cpp @@ -626,7 +626,8 @@ namespace hex { // Draw Banners { - const bool onWelcomeScreen = !ImHexApi::Provider::isValid(); + const auto currentProvider = ImHexApi::Provider::get(); + const bool onWelcomeScreen = currentProvider == nullptr || !currentProvider->isAvailable(); const auto windowPos = ImHexApi::System::getMainWindowPosition(); float startY = windowPos.y + ImGui::GetTextLineHeight() + ((ImGui::GetTextLineHeight() + (ImGui::GetStyle().FramePadding.y * 2.0F)) * (onWelcomeScreen ? 1 : 2));