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.
## 📋 Pull Request Information
**Original PR:** https://github.com/LGUG2Z/komorebi/pull/1345
**Author:** [@CtByte](https://github.com/CtByte)
**Created:** 3/14/2025
**Status:** ✅ Merged
**Merged:** 3/14/2025
**Merged by:** [@LGUG2Z](https://github.com/LGUG2Z)
**Base:** `master` ← **Head:** `time_update`
---
### 📝 Commits (1)
- [`697ef69`](https://github.com/LGUG2Z/komorebi/commit/697ef695109fc7cbd95d2b553d1cca223ced3536) fix(bar): limit new state freq on time and date
### 📊 Changes
**2 files changed** (+122 additions, -56 deletions)
<details>
<summary>View changed files</summary>
📝 `komorebi-bar/src/date.rs` (+38 -16)
📝 `komorebi-bar/src/time.rs` (+84 -40)
</details>
### 📄 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.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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.