src/App.cpp
// perform a screen transntion between two top-level `osc::Screen`s
perform a screen transntion between two top-level `osc::Screen`s
perform a screen transntion between two top - level ` osc :: Screen ` s
static void TransitionToNextScreen(App::Impl& impl)
{
    if (!impl.nextScreen)
    {
        return;
    }
    impl.currentScreen->onUnmount();
    impl.currentScreen.reset();
    impl.currentScreen = std::move(impl.nextScreen);
    impl.numFramesToPoll = 2;
    log::info("mounting screen %s", impl.currentScreen->name());
    impl.currentScreen->onMount();
    log::info("transitioned main screen to %s", impl.currentScreen->name());
}
static void TransitionToNextScreen ( App :: Impl & impl ) { if ( ! impl . nextScreen ) { return ; } impl . currentScreen -> onUnmount ( ) ; impl . currentScreen . reset ( ) ; impl . currentScreen = std :: move ( impl . nextScreen ) ; impl . numFramesToPoll = 2 ; log :: info ( " " , impl . currentScreen -> name ( ) ) ; impl . currentScreen -> onMount ( ) ; log :: info ( " " , impl . currentScreen -> name ( ) ) ; }
perform a screen transntion between two top-level `osc::Screen`s
perform a screen transntion between two top - level ` osc :: Screen ` s