mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #1345] [MERGED] fix(bar): limit new state freq on time and date #1341
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/LGUG2Z/komorebi/pull/1345
Author: @CtByte
Created: 3/14/2025
Status: ✅ Merged
Merged: 3/14/2025
Merged by: @LGUG2Z
Base:
master← Head:time_update📝 Commits (1)
697ef69fix(bar): limit new state freq on time and date📊 Changes
2 files changed (+122 additions, -56 deletions)
View changed files
📝
komorebi-bar/src/date.rs(+38 -16)📝
komorebi-bar/src/time.rs(+84 -40)📄 Description
This commit limits the number of times the time and date widgets get a new state.
Even though having a limit of 1 second on the ui repaint, when the bar is focused or hovered, this is ignored and state of these widgets were updated many more times a second.
The time widget looked less accurate and lagging (especially with multiple showing seconds) so the refresh interval is set to be 500 ms instead of 1 second.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.