From 2c8d006f2fffd28fcb56e991d040db5b8694af8e Mon Sep 17 00:00:00 2001 From: Ryo Nakano Date: Sun, 21 Jan 2024 19:55:31 +0900 Subject: [PATCH] LevelBar: Fix the graph disappears after some time --- src/Widgets/LevelBar.vala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Widgets/LevelBar.vala b/src/Widgets/LevelBar.vala index 003f32f9..9a572233 100644 --- a/src/Widgets/LevelBar.vala +++ b/src/Widgets/LevelBar.vala @@ -89,6 +89,8 @@ public class LevelBar : Gtk.Box { update_graph_timeout = Timeout.add (REFRESH_MSEC, () => { int current = (int) (recorder.current_peak * PEAK_PERCENTAGE); serie.add_with_timestamp (current, timestamp); + // Keep last bar on the right of the graph area + config.time.current = timestamp; timestamp += REFRESH_MSEC; return GLib.Source.CONTINUE; });