Commit graph

21 commits

Author SHA1 Message Date
Cheong Lau
38c037c977 perf: use unstable sorting when async
Unstable sorting should be slightly faster than stable sorting, and if
the vector was built asynchronously then preserving the initial order
doesn't matter too much.

Continue to use stable sorting where the vector is not built
asynchronously, or if the vector is partially sorted (e.g. when new
elements are pushed to a sorted vector).
2025-10-07 17:04:51 +02:00
Cheong Lau
dd0158d8f0 perf: refactor to reduce memory allocations and cpu work 2025-10-07 17:04:51 +02:00
Cheong Lau
8e0f1c4a09
chore: apply recommendations from clippy 2025-10-04 02:51:18 +02:00
Alex Rennie
3daffb4fba feat(audio): MPRIS Raise functionality 2025-10-01 17:44:54 +02:00
Vukašin Vojinović
2b7b4cba56 chore: update to Rust 2024 edition 2025-08-18 16:44:50 +02:00
Ian Douglas Scott
417f43a0f5 Update to zbus 5.x 2025-05-28 13:40:23 -04:00
Ashley Wulber
5b5cd77e7c update iced 2024-10-31 17:52:33 -04:00
wiiznokes
6b8d3dc415 improv: filter firefox player 2024-09-12 17:03:11 +02:00
Ashley Wulber
87250b5e50 zbus update 2024-05-18 01:38:41 +02:00
Michael Aaron Murphy
8527257ddd chore: add SPDX license identifiers 2024-05-06 21:56:50 +02:00
Ian Douglas Scott
216d88e977 audio: Mpris media control fixes
The panel buttons for next/previous didn't do anything since `on_press`
wasn't set. Now they work.

Fixed `autosize` which I had accidentally committed after using it for
testing. (It would be good to figure out why the applets don't work
properly with autosize when run outside of the panel, since that's handy
for testing.)

I noticed with VLC, skipping a track makes the media controls disappear
very briefly, and sometimes the pause button didn't return. I guess
`can_play` (etc.) are temporarily set to false, probably expecting the
controls to be greyed out and not hidden from a panel. Anyway,
monitoring for changes to these properties as well will hopefully fix
the part where it could remain missing. Though I can't reproduce that
consistently.
2024-04-05 16:31:01 -06:00
Ian Douglas Scott
1475f8f32b audio: Don't recreate mpris proxies and streams
Fixes https://github.com/pop-os/cosmic-applets/issues/306 and should
overall be more correct and performant.
2024-04-04 13:25:16 +02:00
jilv220
59af0f1b8b feat(audio): add fallback when title/artist not found 2024-02-21 11:01:03 -05:00
Ashley Wulber
d17894f94e chore: clippy 2024-02-20 10:55:08 -05:00
Ashley Wulber
34c4bada71 fix(audio): no media player will be chosen unless paused or playing 2024-02-15 22:42:48 -05:00
Ashley Wulber
78f8a3f722 fix: better handling of mpris changes 2023-12-11 15:25:42 -05:00
daniel.eades
aa2d9fe374 add linting CI jobs 2023-11-21 16:59:14 -05:00
daniel.eades
b472a155fc remove redundant clones 2023-11-16 15:47:20 -05:00
Ashley Wulber
0db1a96c42 refactor(audio): use mpris2-zbus 2023-10-27 19:46:51 -04:00
Ashley Wulber
9e866088e4 fix(audio): increment counter 2023-10-24 15:34:21 -04:00
Ashley Wulber
557a43517d feat: mpris support for audio applet 2023-10-24 15:34:21 -04:00