Skip to content

Commit 1f9d194

Browse files
committed
fix: periodically rescan the tray menu
this helps with the "x seconds ago" menu item labels
1 parent 28ccede commit 1f9d194

File tree

1 file changed

+2
-1
lines changed
  • plugins/plugin-codeflare/src/tray

1 file changed

+2
-1
lines changed

plugins/plugin-codeflare/src/tray/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ let tray: null | InstanceType<typeof import("electron").Tray> = null
3333
class LiveMenu {
3434
public constructor(
3535
private readonly tray: import("electron").Tray,
36-
private readonly createWindow: CreateWindowFunction
36+
private readonly createWindow: CreateWindowFunction,
37+
private readonly periodic = setInterval(() => this.render(), 10 * 1000)
3738
) {
3839
this.render()
3940
}

0 commit comments

Comments
 (0)