Add a Currently Playing toggle to the queue panel page

Below Previously Played in the queue page settings; off by default, so
the queue page lists history and up next without the playing video.
With it off the page opens scrolled to Up Next.
This commit is contained in:
Arkadiusz Fal
2026-10-12 19:45:02 +02:00
parent e71bb76f13
commit 4a9a92d140
5 changed files with 45 additions and 7 deletions

View File

@@ -260,8 +260,12 @@ struct RelatedPageSettings: Codable, Hashable, Sendable {
/// Element toggles for the queue page.
struct QueuePageSettings: Codable, Hashable, Sendable {
var showHistory: Bool?
/// Whether the playing video is listed between history and the queue.
/// Off by default: the player itself already shows it.
var showNowPlaying: Bool?
var effectiveShowHistory: Bool { showHistory ?? true }
var effectiveShowNowPlaying: Bool { showNowPlaying ?? false }
}
/// Element toggles for the chapters page.