Skip to content

Early return for non-admin areas when emulation is called but not started yet #6

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

Merged
merged 1 commit into from
Apr 29, 2025

Conversation

davidtabat
Copy link
Contributor

@davidtabat davidtabat commented Apr 24, 2025

Turns out that setDesignTheme is also called within startEmulation function, so when you start emulation, intended area code might not be set yet, but will be available as an optional parameter.
So first we have to check if that parameter is passed and if it's something else than admin.

The early return I made in previous pr is still needed, because this function also gets executed when emulation is already in place.

@artKozynets artKozynets requested a review from rhoerr April 24, 2025 20:41
Copy link
Contributor

@rhoerr rhoerr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants