Skip to content

fix: separate add-on entries in Tools menu with separator - #5124

Merged
abdnh merged 7 commits into
ankitects:mainfrom
qais8r:add-tools-addon-separator
Aug 5, 2026
Merged

fix: separate add-on entries in Tools menu with separator#5124
abdnh merged 7 commits into
ankitects:mainfrom
qais8r:add-tools-addon-separator

Conversation

@qais8r

@qais8r qais8r commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Linked issue (required)

Closes #5125

Summary / motivation (required)

Add a separator at the end of Anki's built-in Tools menu actions, before any add-on-provided menu entries.

Add-ons commonly append actions directly to mw.form.menuTools. This keeps add-on entries visually separated from Anki's built-in Tools actions, especially on macOS where Preferences is shown elsewhere and add-on entries can appear immediately below "Check for Updates".

Because Qt hides trailing menu separators by default, users without add-on-provided Tools menu entries should not see an extra separator.

Steps to reproduce (required, use N/A if not applicable)

  1. Install one or more add-ons that append entries to the Tools menu.
  2. Open the Tools menu.
  3. Observe that add-on-provided entries appear directly after the built-in Tools menu entries.

How to test (required)

Checklist (minimum)

  • I ran ./ninja check or an equivalent relevant check locally.
  • I added or updated tests when the change is non-trivial or behavior changed.

Details

  • Parsed qt/aqt/forms/main.ui as XML.
  • Ran git diff --check.
  • No automated test was added because this is a one-line visual menu grouping change in a Qt Designer file.

Before / after behavior (optional)

Before: add-on-provided Tools menu entries can appear immediately after Anki's built-in actions.

After: add-on-provided Tools menu entries are visually separated from Anki's built-in actions.

Risk / compatibility / migration (optional)

Low risk. The change adds a Qt menu separator after the built-in Tools actions. Qt hides trailing menu separators by default, so users without add-on-provided Tools menu entries should not see an extra divider.

UI evidence (required for visual changes; otherwise N/A)

before after

Scope

  • This PR is focused on one change (no unrelated edits).

@qais8r
qais8r marked this pull request as ready for review July 8, 2026 14:52
@qais8r qais8r changed the title Add separator before Tools add-on menu entries fix: separate add-on entries in Tools menu Jul 8, 2026

qais8r commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

Hi! I’ve resolved the merge conflicts and updated the branch with the latest changes from main. It’s ready for another look whenever you have a chance. Thank you!

@read-the-docs-community

read-the-docs-community Bot commented Jul 16, 2026

Copy link
Copy Markdown

Documentation build overview

📚 Anki | 🛠️ Build #33826176 | 📁 Comparing df274a9 against latest (5d51ca0)

  🔍 Preview build  

4 files changed
± genindex.html
± autoapi/anki/collection/index.html
± autoapi/aqt/mediasrv/index.html
± autoapi/aqt/webview/index.html

@qais8r qais8r changed the title fix: separate add-on entries in Tools menu fix: separate add-on entries in Tools menu with line break (+1 line of code) Jul 26, 2026
@qais8r qais8r changed the title fix: separate add-on entries in Tools menu with line break (+1 line of code) fix: separate add-on entries in Tools menu with separator Jul 28, 2026
@GithubAnon0000

Copy link
Copy Markdown
Contributor

It might take a while until a maintainer sees this. Thank you for your efforts.

@abdnh abdnh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@abdnh
abdnh merged commit 3e85288 into ankitects:main Aug 5, 2026
10 checks passed
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.

Separate add-on entries in the Tools menu

3 participants