feat: allow skipping splash screen with 0ms duration (#115)#128
Open
P-rth wants to merge 1 commit intofossasia:masterfrom
Open
feat: allow skipping splash screen with 0ms duration (#115)#128P-rth wants to merge 1 commit intofossasia:masterfrom
P-rth wants to merge 1 commit intofossasia:masterfrom
Conversation
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR makes the splash screen skippable by setting the configured minimum splash duration to 0ms so that the splash display is no longer enforced. Flow diagram for app startup with configurable splash minimum durationflowchart TD
AppStart[App start]
CheckMinDuration[Check SPLASH_MIN_SPEED_T]
ShowSplash[Render splash screen]
WaitMinDuration[Wait SPLASH_MIN_SPEED_T milliseconds]
MainUI[Show main UI]
AppStart --> CheckMinDuration
CheckMinDuration -->|SPLASH_MIN_SPEED_T > 0| ShowSplash
ShowSplash --> WaitMinDuration
WaitMinDuration --> MainUI
CheckMinDuration -->|SPLASH_MIN_SPEED_T = 0| MainUI
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Author
|
Looking a bit more at the documentation, I see that the delay is explicitly mentioned: I cant seem to find a reason for adding "must not be lower than 10ms", Though I don't have the hardware currently to test it on a real device. maybe im missing something? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses #115 by allowing users to skip the splash screen.
Previously, SPLASH_MIN_SPEED_T imposed a minimum duration. By setting this to 0, users can now skip the splash screen.
Changes
Testing
Closes #115
Summary by Sourcery
New Features: