@@ -71,6 +71,8 @@ private Dictionary<CustomKeyBindingAction, Action> GetCustomActions()
7171 [ CustomKeyBindingAction . SubsPrimaryTextCopy ] = ( ) => CmdSubsPrimaryTextCopy . Execute ( false ) ,
7272 [ CustomKeyBindingAction . SubsSecondaryTextCopy ] = ( ) => CmdSubsSecondaryTextCopy . Execute ( false ) ,
7373 [ CustomKeyBindingAction . ToggleSubsAutoTextCopy ] = CmdToggleSubsAutoTextCopy . Execute ,
74+ [ CustomKeyBindingAction . ToggleSidebarShowSecondary ] = CmdToggleSidebarShowSecondary . Execute ,
75+ [ CustomKeyBindingAction . ToggleSidebarShowOriginalText ] = CmdToggleSidebarShowOriginalText . Execute ,
7476
7577 [ CustomKeyBindingAction . ToggleSidebar ] = CmdToggleSidebar . Execute ,
7678 [ CustomKeyBindingAction . ToggleDebugOverlay ] = CmdToggleDebugOverlay . Execute ,
@@ -346,6 +348,16 @@ private void SubsTextCopyInternal(int subIndex, bool? suppressOsd)
346348 _config . Subs . SubsAutoTextCopy = ! _config . Subs . SubsAutoTextCopy ;
347349 } ) ;
348350
351+ public DelegateCommand CmdToggleSidebarShowSecondary => field ?? new ( ( ) =>
352+ {
353+ _config . SidebarShowSecondary = ! _config . SidebarShowSecondary ;
354+ } ) ;
355+
356+ public DelegateCommand CmdToggleSidebarShowOriginalText => field ?? new ( ( ) =>
357+ {
358+ _config . SidebarShowOriginalText = ! _config . SidebarShowOriginalText ;
359+ } ) ;
360+
349361 public DelegateCommand CmdToggleSidebar => field ?? new ( ( ) =>
350362 {
351363 _config . ShowSidebar = ! _config . ShowSidebar ;
@@ -664,6 +676,11 @@ public enum CustomKeyBindingAction
664676 [ Description ( "Toggle Auto Subtitles Text Copy" ) ]
665677 ToggleSubsAutoTextCopy ,
666678
679+ [ Description ( "Toggle Primary / Secondary in Subtitles Sidebar" ) ]
680+ ToggleSidebarShowSecondary ,
681+ [ Description ( "Toggle to show original text in Subtitles Sidebar" ) ]
682+ ToggleSidebarShowOriginalText ,
683+
667684 [ Description ( "Toggle Subitltes Sidebar" ) ]
668685 ToggleSidebar ,
669686 [ Description ( "Toggle Debug Overlay" ) ]
@@ -736,6 +753,8 @@ public static KeyBindingActionGroup ToGroup(this CustomKeyBindingAction action)
736753 case CustomKeyBindingAction . SubsPrimaryTextCopy :
737754 case CustomKeyBindingAction . SubsSecondaryTextCopy :
738755 case CustomKeyBindingAction . ToggleSubsAutoTextCopy :
756+ case CustomKeyBindingAction . ToggleSidebarShowSecondary :
757+ case CustomKeyBindingAction . ToggleSidebarShowOriginalText :
739758 return KeyBindingActionGroup . Subtitles ;
740759
741760 case CustomKeyBindingAction . ToggleSidebar :
0 commit comments