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

[browser] Move check for showSplashScreen outside of showAndHide #167

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bytenik
Copy link

@bytenik bytenik commented Oct 31, 2018

Currently, unless AutoHideSplashScreen is enabled in the config, not showing the splash screen is ignored altogether.

Platforms affected

Browser

What does this PR do?

Properly doesn't show the splash on Browser when ShowSplashScreen is false, even if you do not set
AutoHideSplashScreen to true.

What testing has been done on this change?

Verified that plugin works as expected.

Currently, unless AutoHideSplashScreen is enabled in the config, not showing the splash screen is ignored altogether.
@@ -138,13 +138,11 @@ function readPreferencesFromCfg(cfg) {
* Shows and hides splashscreen if it is enabled, with a delay according the current preferences.
*/
function showAndHide() {
Copy link
Member

Choose a reason for hiding this comment

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

Is this possibly used somewhere else?
Or could this be used externally so someone could depend on the broken behavior?

Copy link
Author

Choose a reason for hiding this comment

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

Its certainly possible that someone externally uses this and depends on the broken behavior. The only way to avoid that for certain would be to keep the if in this function and then also check for enabled in the caller when autohide is disabled.

@janpio janpio changed the title Move check for showSplashScreen outside of showAndHide [browser] Move check for showSplashScreen outside of showAndHide May 3, 2019
@janpio janpio added the bug label May 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants