Skip to content

Let the Ko-fi footer button be dismissed - #97

Merged
CalebHendren merged 1 commit into
mainfrom
feature/dismiss-kofi-button
Oct 17, 2026
Merged

CalebHendren merged 1 commit into
mainfrom
feature/dismiss-kofi-button

Conversation

@CalebHendren

Copy link
Copy Markdown
Owner

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

  • New setting kofi_dismissed in settings.json (default false), with kofi_dismissed() / set_kofi_dismissed() helpers in pymappr/files/projects.py. Only a literal true counts.
  • PyMapprApp.kofi_dismissed() / on_dismiss_kofi() connect the panel to the setting.
  • New 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, in tests/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.

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.
@CalebHendren
CalebHendren merged commit 2ce128a into main Oct 17, 2026
4 checks passed
@CalebHendren
CalebHendren deleted the feature/dismiss-kofi-button branch October 17, 2026 13:18
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