natinusala / borealis

Hardware accelerated, controller and TV oriented UI library for PC and Nintendo Switch (libnx)
Apache License 2.0
260 stars 83 forks source link

Tabframe does not switch to a view if previous view was nullptr. #30

Closed jon-dez closed 4 years ago

jon-dez commented 4 years ago

Here's an easy fix

// File: library/lib/tab_frame.cpp

void TabFrame::switchToView(View* view)
{

    ...
// Line 66
    this->rightPane = view;
    if (this->rightPane != nullptr)
        this->layout->addView(this->rightPane, true, true); // addView() calls willAppear()
}