Skip to content

feat(MediaViewer): only add spinner after 1s#1088

Merged
GeopJr merged 1 commit intomainfrom
feat/mediaviewer/add-spinner-after-1s
Aug 24, 2024
Merged

feat(MediaViewer): only add spinner after 1s#1088
GeopJr merged 1 commit intomainfrom
feat/mediaviewer/add-spinner-after-1s

Conversation

@GeopJr
Copy link
Owner

@GeopJr GeopJr commented Aug 21, 2024

Only show the per-item spinner after 1s has passed of not being loaded, to avoid it being shown very briefly

The implementation follows the dynamic sidebar one, where instead of trying to tame the race condition, it uses a second guard. In this case, the spinner will only be added after 1s if the item is not done loading, however the code can still change its spinning status regardless.

https://gitlab.gnome.org/Teams/Circle/-/issues/193#note_2202009

@GeopJr GeopJr merged commit 9455294 into main Aug 24, 2024
@GeopJr GeopJr deleted the feat/mediaviewer/add-spinner-after-1s branch August 24, 2024 17:03
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.

1 participant