From d07c32556b617afc4b7fdccf414c0c6be84a7c12 Mon Sep 17 00:00:00 2001 From: minster586 <43217359+minster586@users.noreply.github.com> Date: Fri, 10 Oct 2025 03:58:19 -0400 Subject: [PATCH] Trying to work on the marquee --- RadioDJViewer/Main.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/RadioDJViewer/Main.cs b/RadioDJViewer/Main.cs index 9b8b6e7..99f78ea 100644 --- a/RadioDJViewer/Main.cs +++ b/RadioDJViewer/Main.cs @@ -546,11 +546,18 @@ namespace RadioDJViewer mainImagesFolderPath = profile.MainImagesFolder; // Update new field loadedProfile = profile; // Store loaded profile for REST API connection // Update polling rate when profile is loaded - int pollingRate = loadedProfile?.PollingRateSeconds > 0 ? loadedProfile.PollingRateSeconds : 3; + int pollingRate = profile.PollingRateSeconds > 0 ? profile.PollingRateSeconds : 3; apiTimer.Interval = pollingRate * 1000; SetMarqueeScrollSpeed(profile.MarqueeScrollSpeed ?? "Medium"); SetMarqueePauseTime(profile.MarqueePauseTime > 0 ? profile.MarqueePauseTime : 6); SetMarqueeSeparator(profile.MarqueeSeparator ?? " | "); + // Immediately apply marquee settings to timers + if (pauseTimerTitle != null) pauseTimerTitle.Interval = marqueePauseTime; + if (pauseTimerArtist != null) pauseTimerArtist.Interval = marqueePauseTime; + if (pauseTimerAlbum != null) pauseTimerAlbum.Interval = marqueePauseTime; + marqueeTimerTitle.Interval = marqueeScrollSpeed; + marqueeTimerArtist.Interval = marqueeScrollSpeed; + marqueeTimerAlbum.Interval = marqueeScrollSpeed; UpdateStatusBar(); // You can add more logic to update other fields if needed }