File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -560,7 +560,7 @@ public void SetActiveProbe(ProbeManager newActiveProbeManager)
560560
561561 public void NextProbe ( CallbackContext context )
562562 {
563- if ( ProbeManager . Instances . Count == 0 || UIManager . InputsFocused ) return ;
563+ if ( ProbeManager . Instances . Count == 0 || UIManager . InputsFocused || ! Settings . ProbePrevNextEnabled ) return ;
564564
565565 int idx = ProbeManager . Instances . FindIndex ( x => x . Equals ( ProbeManager . ActiveProbeManager ) ) ;
566566
@@ -572,7 +572,7 @@ public void NextProbe(CallbackContext context)
572572
573573 public void PrevProbe ( CallbackContext context )
574574 {
575- if ( ProbeManager . Instances . Count == 0 || UIManager . InputsFocused ) return ;
575+ if ( ProbeManager . Instances . Count == 0 || UIManager . InputsFocused || ! Settings . ProbePrevNextEnabled ) return ;
576576
577577 int idx = ProbeManager . Instances . FindIndex ( x => x . Equals ( ProbeManager . ActiveProbeManager ) ) ;
578578
Original file line number Diff line number Diff line change @@ -113,6 +113,9 @@ public static int ProbeSpeed
113113 }
114114 }
115115
116+ private static bool _prevNextEnabled ;
117+ public static bool ProbePrevNextEnabled { get { return _prevNextEnabled ; } set { _prevNextEnabled = value ; } }
118+
116119 #endregion
117120
118121 #region Area settings
You can’t perform that action at this time.
0 commit comments