cosmic-applets/cosmic-applet-audio
agrimkasaju 82e7cd814a fix(audio): adjust active device index on node removal
When an audio device preceding the active sink or source is removed,
the internal vector elements shift left, but self.active was not decremented.
Subsequent volume or mute events accessed an out-of-bounds index, causing
an immediate panic:

    thread 'main' panicked at cosmic-applet-audio/src/model.rs:116:64:
    index out of bounds: the len is 6 but the index is 6

Fix by decrementing self.active when active > pos in Nodes::remove.

Fixes #1508

Assisted-by: AI (Google Antigravity)
2026-09-23 12:48:55 -06:00
..
data i18n: translate desktop entries with xdgen (#1328) 2026-03-02 11:33:29 -07:00
i18n i18n: translation updates from weblate 2026-09-14 16:51:37 +00:00
src fix(audio): adjust active device index on node removal 2026-09-23 12:48:55 -06:00
Cargo.toml Epoch 1.9.0 version update 2026-09-22 17:11:57 +02:00
i18n.toml wip: update libcosmic (#93) 2023-06-01 12:23:12 -04:00