mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 09:15:22 +01:00
[PR #999] [MERGED] fix(clock): reset selected calendar date on each popup open #5303
Labels
No labels
A:Build
A:CI
A:Client
A:Config
A:Core
A:Documentation
A:Documentation
A:IPC
A:Testing
A:UX/UI
blocked
BREAKING CHANGE
duplicate
good first issue
GTK4
help wanted
invalid
M:Battery
M:Battery
M:Bindmode
M:Bluetooth
M:Brightness
M:Cairo
M:Clipboard
M:Clock
M:Clock
M:Custom
M:Focused
M:Keyboard
M:Launcher
M:Menu
M:Music
M:Music
M:Music
M:Network Manager
M:Notifications
M:SysInfo
M:Tray
M:Volume
M:Workspaces
partially resolved
P:Critical
P:High
P:Low
P:Medium
pull-request
T:Bug
T:Bug
T:Core Enhancement
T:Module Enhancement
T:New Module
T:Question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/ironbar#5303
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/JakeStanger/ironbar/pull/999
Author: @postsolar
Created: 5/20/2025
Status: ✅ Merged
Merged: 5/20/2025
Merged by: @JakeStanger
Base:
master← Head:fix-calendar-date📝 Commits (1)
c4b29e1Calendar: reset selected date on each popup open📊 Changes
1 file changed (+8 additions, -1 deletions)
View changed files
📝
src/modules/clock.rs(+8 -1)📄 Description
Closes #931
Additional context #931
So I chose to go with using selections. I think markings have a few cons:
connect_{next,prev}_{month,year}to unmark currently marked day, because marks persist across month/year changes (only a day is marked, and not a date).All in all it's a lot less code and problems with selections and there's currently hardly a non-contrived use case for them so I think changing their semantics is fine.
I'm not sure if it's needed to also reset the date at midnight. It's hard to imagine a scenario where it's either a significant win or a significant loss for UX.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.