mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Banner position being wrong while provider is loaded
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user