Random button UI does not refresh after enabling until another UI refresh occurs (Volumio 3.912)

Hardware

  • Raspberry Pi 4 (8 GB)

Version

  • Volumio 3.912
  • Build date: 27-Feb-2026

Description

When enabling Random from the playback queue, the Random mode is enabled immediately, but the button state is not updated until another UI refresh occurs (changing track, leaving and re-entering the queue screen, etc.).

Expected behavior

The Random button should immediately change to the enabled state after pressing it.

Actual behavior

  • Random mode is enabled immediately.
  • Playback behaves correctly.
  • The UI button remains OFF.
  • After another UI refresh (Next track, reopening the queue, etc.), the button correctly appears ON.

What was verified

  • curl http://localhost:3000/api/v1/getState immediately returns "random": true.
  • CoreStateMachine::pushState is generated.
  • CoreCommandRouter::volumioPushState is generated.
  • MPD changes state correctly.
  • No backend errors are present in the logs.

Additional observations

  • Firefox on Windows works correctly.
  • Chrome on Windows was fixed after clearing the browser cache.
  • Android app, Chrome Android and Firefox Android all show the same UI behavior.
  • The issue is only visual; playback and Random mode work correctly.

Reproduction

  1. Open playback queue.
  2. Press Random.
  3. Random is enabled internally.
  4. Button remains visually OFF.
  5. Press Next (or leave and re-enter the queue).
  6. Button immediately appears ON.

Additional finding:

If Random is enabled and then another UI event occurs (for example pressing Next, or leaving and re-entering the queue), the Random button immediately appears enabled.

This suggests that the Random state is already correct internally and the issue is limited to the UI refresh of that control.