1- using System . Collections . Generic ;
1+ using System ;
2+ using System . Collections . Generic ;
23using System . ComponentModel ;
34using System . Runtime . CompilerServices ;
45using System . Windows ;
@@ -138,12 +139,18 @@ public WindowState SettingsWindowState
138139
139140 public List < PlayerInfo > Players { get ; set ; } = new List < PlayerInfo > ( ) ;
140141 public List < Trigger > Triggers { get ; set ; } = new List < Trigger > ( ) ;
142+
141143 public SpellsFilterType _SpellsFilter = SpellsFilterType . ByClass ;
142144 public SpellsFilterType SpellsFilter
143145 {
144146 get => _SpellsFilter ;
145147 set
146148 {
149+ if ( ( int ) value == 3 ) // Legacy setting. Lazy Migration. We should avoid adding a new 3 in the future, but if we do, we can just delete this block.
150+ {
151+ value = SpellsFilterType . CastByYou ;
152+ }
153+
147154 if ( value == _SpellsFilter )
148155 {
149156 return ;
@@ -153,7 +160,22 @@ public SpellsFilterType SpellsFilter
153160 OnPropertyChanged ( ) ;
154161 }
155162 }
163+
164+ private bool _SpellsFilterAlwaysShowCastOnYou = true ;
165+ public bool SpellsFilterAlwaysShowCastOnYou
166+ {
167+ get => _SpellsFilterAlwaysShowCastOnYou ;
168+ set
169+ {
170+ if ( value == _SpellsFilterAlwaysShowCastOnYou )
171+ {
172+ return ;
173+ }
156174
175+ _SpellsFilterAlwaysShowCastOnYou = value ;
176+ OnPropertyChanged ( ) ;
177+ }
178+ }
157179 private SpellGroupingType _PlayerSpellGroupingType = SpellGroupingType . ByTarget ;
158180 public SpellGroupingType PlayerSpellGroupingType
159181 {
@@ -210,7 +232,6 @@ public bool? RaidModeDetection
210232 }
211233 public bool LoginMiddleMand { get ; set ; }
212234 public bool IsClickThroughMode { get ; set ; }
213-
214235 public event PropertyChangedEventHandler PropertyChanged ;
215236
216237 protected void OnPropertyChanged ( [ CallerMemberName ] string name = null )
0 commit comments