Repository navigation
Let the Ko-fi footer button be dismissed - #97
Merged
Merged
Conversation
Adds a small x beside the Support on Ko-fi button in the control panel footer. Dismissing it hides the button, stores kofi_dismissed in settings.json so it stays hidden on later launches, and leaves the Help menu entry in place. The row is removed outright so the footer has no gap.
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.
What
The control panel footer's "Support on Ko-fi" button now has a small x beside it (tooltip: "Hide this button"). Clicking it hides the button and remembers the choice across restarts. The footer row is removed rather than hidden, so there is no gap above "Check for updates". "Support me on Ko-fi" stays in the Help menu, so the link is still reachable.
How
kofi_dismissedinsettings.json(default false), withkofi_dismissed()/set_kofi_dismissed()helpers inpymappr/files/projects.py. Only a literaltruecounts.PyMapprApp.kofi_dismissed()/on_dismiss_kofi()connect the panel to the setting.pymappr/ui/tooltip.py, a minimal hover tooltip.Tests
Settings default, persistence round-trip and malformed value in
tests/test_projects.py; panel shows the dismiss control, hides the button and persists, and stays hidden when already dismissed, intests/test_control_panel.py. Full suite: 705 passed, 9 skipped (the usual optional-dependency skips).Version bump: patch bump (hotfix), 1.34.0 to 1.34.1.