Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

var == FromTo.Frontend seems to have conflict with Displays "screen". #78

Open
guilleshop opened this issue Nov 7, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@guilleshop
Copy link

guilleshop commented Nov 7, 2024

When applying var == FromTo.Frontend to fe.add_transition_callback, it appears that the Displays "screen" triggers the FromTo.Frontend event, when according to the documentation this is reserved for "First Start of the Frontend".

Example: This code will unfortunately trigger the " fe.set_display(3)" whenever going back to Displays menu (effectively not allowing me to go to the Displays menu at all). Ideally, this should only trigger fe.set_display(3) when first starting the frontend app.

See attached plugin for easy reproduce...
StartupDisplay.zip

fe.add_transition_callback("onTransition");

function onTransition( ttype, var, ttime )
{
    if ( ttype == Transition.StartLayout && var == FromTo.Frontend )
    {
        fe.set_display(3)
        return false;
    }
}
@oomek oomek added the bug Something isn't working label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants