Skip to content

Inconsistent title cycle duration #347

@cwernert

Description

@cwernert

Describe the bug
When more than one title is output to the header:

  • Previously: SwiftBar cycles through displaying the titles one at a time for 5 seconds each
  • On v1.4.4: The first title seems to dominate, with subsequent titles appearing briefly and intermittently. Eg. first title might be shown for 12 seconds, then second title is flashed for <1 second before first title is displayed again, this time for a different duration.

To Reproduce
Steps to reproduce the behavior:

  1. Create a plugin which outputs at least 2 titles to the header ( before the first ---)
  2. Enable the plugin and monitor the display duration for each title

Expected behavior

  • Each title should be displayed for a standard duration (eg. 5s)
  • Titles should cycle on a loop, giving equal display time to each

Screenshots
https://cdn.zappy.app/va6dcd69c28fedf440a101c61a04693f9.mp4
See 00:27, Menu Item 2 flashes at ~00:28

Environment:

  • macOS version: 12.5.1 (also observed on 13.0)
  • SwiftBar version: 1.4.4 (see note in Additional Context)
  • node version: 16.8.0 (also observed on 12.22.3)

Plugin Example:

#!/usr/bin/env node
console.log("Menu Title 1");
console.log("Menu Title 2");
console.log("---");
console.log("Body content");

Additional Context:

  • I don't run Bartender/Dozer/etc. or tested the issue without it running (observed both with & without Bartender)
  • This was reported to me by a colleague running v1.4.4 and I couldn't reproduce it on the older version I was running (sorry, I'm not sure which). While comparing environment versions between our machines, I noticed my SwiftBar was outdated. Once I updated to v1.4.4, I saw the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions