mirror of
https://github.com/yattee/yattee.git
synced 2026-10-23 21:22:53 +00:00
Move comments pill mode into the comments page settings
The pill mode now lives on CommentsPageSettings and is edited in the comments page editor instead of a standalone settings section. The legacy value on PlayerPillSettings is kept for decoding old presets and migrated by effectivePanelSettings. Comments are loaded when either the comments page is enabled or the pill is not disabled.
This commit is contained in:
@@ -625,19 +625,6 @@ final class PlayerControlsSettingsViewModel {
|
||||
playerPillSettings.buttons
|
||||
}
|
||||
|
||||
/// Current comments pill mode.
|
||||
var commentsPillMode: CommentsPillMode {
|
||||
playerPillSettings.effectiveCommentsPillMode
|
||||
}
|
||||
|
||||
/// Synchronously updates the comments pill mode with immediate UI feedback.
|
||||
/// - Parameter mode: The new comments pill mode.
|
||||
func syncCommentsPillMode(_ mode: CommentsPillMode) {
|
||||
updatePlayerPillSettingsSync { settings in
|
||||
settings.commentsPillMode = mode
|
||||
}
|
||||
}
|
||||
|
||||
/// Synchronously updates the pill visibility with immediate UI feedback.
|
||||
/// - Parameter visibility: The new visibility mode.
|
||||
func syncPillVisibility(_ visibility: PillVisibility) {
|
||||
|
||||
Reference in New Issue
Block a user