From 4f8c127da926bc1e1724e7686a42d37c1da0f563 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 24 Oct 2023 12:50:03 +1100 Subject: Use an mutable struct + const instead of an immutable class --- src/ui/screen_playing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/screen_playing.cpp') diff --git a/src/ui/screen_playing.cpp b/src/ui/screen_playing.cpp index d7fda0b6..7d95cb7d 100644 --- a/src/ui/screen_playing.cpp +++ b/src/ui/screen_playing.cpp @@ -173,7 +173,7 @@ Playing::Playing(models::TopBar& top_bar_model, if (!id) { return; } - if (current_track_.get() && current_track_.get()->data().id() == *id) { + if (current_track_.get() && current_track_.get()->data().id == *id) { return; } auto db = db_.lock(); -- cgit v1.2.3