Skip to content

[Fix] Reduce config retrieval throttling#6140

Merged
nathanlesage merged 1 commit into
Zettlr:developfrom
benniekiss:config-throttle
Feb 7, 2026
Merged

[Fix] Reduce config retrieval throttling#6140
nathanlesage merged 1 commit into
Zettlr:developfrom
benniekiss:config-throttle

Conversation

@benniekiss

@benniekiss benniekiss commented Jan 18, 2026

Copy link
Copy Markdown
Collaborator

Description

This PR reduces the config retrieval throttling from 1 second to 50ms to improve UX and fix some minor issues.

Changes

The retrieval throttling was reduced from 1 second to 50ms. The long throttle caused UX side effects, such as a 1-second delay when switching tabs in the sidebar. It also caused an issue I was experiencing where quickly checking or unchecking spellcheck dictionaries would not be registered, and unselecting all dictionaries was not possible. [EDIT: this last part was an erroneous issue] This is no longer the case with the reduced throttle.

Additional information

The throttle was initially put in place to reduce lag from rapid config updates. I wasn't able to produce any lag with 50ms, but if there is, the value should be increased by smaller increments, as 1 second is too long.

Tested on: macOS 26

@nathanlesage nathanlesage merged commit 90fb575 into Zettlr:develop Feb 7, 2026
1 check passed
@benniekiss benniekiss deleted the config-throttle branch February 7, 2026 14:42
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.

2 participants