Skip to content

Conversation

@awsr
Copy link
Contributor

@awsr awsr commented Jan 25, 2026

The only place I could really find that was out of the way for the button was below the gallery images list. To prevent accidental activation, it requires a double-click/double-tap*, and by default it isn't displayed unless the setting is enabled. That said, because of the way Gradio's visibility classes work, it'll only be visible when viewing a folder that isn't empty (which shouldn't be an issue).

There's also a fix for a logic bug (checking value instead of if key exists, so it never worked when the value was false) with monitored settings.

* (Especially important on mobile since it ends up between the file list and the image display. It's not a great spot, which is partially why I have it set to not display by default.)

Adds a dynamic label after the "Use image gallery cache" setting that shows the current active folder and can be double-clicked/tapped (to prevent accidental triggering) to clear the thumbnail cache for that folder.

@awsr awsr marked this pull request as draft January 26, 2026 08:24
@awsr
Copy link
Contributor Author

awsr commented Jan 26, 2026

Trying out a different solution of dynamically adding/updating an extra line after the "Use image gallery cache" setting.

@awsr awsr marked this pull request as ready for review January 26, 2026 10:23
@awsr
Copy link
Contributor Author

awsr commented Jan 26, 2026

This solution works much better IMO. The alignment is a little off on the Standard UI, but it's not enough to be an issue.

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