@@ -24,7 +24,7 @@ public partial class MainWindow : MetroWindow, INotifyPropertyChanged
2424 private FileSystemWatcher ? fileWatcher ;
2525 private FileSystemWatcher ? folderWatcher ;
2626
27- private bool _isWatchingFile = false ;
27+ private bool _isWatchingFile ;
2828 public bool IsWatchingFile
2929 {
3030 get => _isWatchingFile ;
@@ -42,7 +42,7 @@ public bool IsWatchingFile
4242 UpdateForcedRefreshEnabledState ( ) ;
4343 }
4444 }
45- private bool _isWatchingFolder = false ;
45+ private bool _isWatchingFolder ;
4646 public bool IsWatchingFolder
4747 {
4848 get => _isWatchingFolder ;
@@ -61,7 +61,7 @@ public bool IsWatchingFolder
6161 }
6262 }
6363
64- private bool _isForcedRefreshEnabled = false ;
64+ private bool _isForcedRefreshEnabled ;
6565 public bool IsForcedRefreshEnabled
6666 {
6767 get => _isForcedRefreshEnabled ;
@@ -186,9 +186,9 @@ public Config AppConfig
186186 // Search functionality
187187 private int currentSearchPosition = - 1 ;
188188 private readonly List < int > searchResultPositions = [ ] ;
189- private TabInfo ? currentSearchTab = null ;
189+ private TabInfo ? currentSearchTab ;
190190
191- private bool _isProcessing = false ;
191+ private bool _isProcessing ;
192192
193193 public MainWindow ( )
194194 {
@@ -703,7 +703,7 @@ private void SaveProfile(string profilePath)
703703 {
704704 var profileData = tabs . Where ( tab => ! tab . IsAutoCreated ) . Select ( tab => new TabProfileItem ( tab ) ) . ToList ( ) ;
705705
706- var profile = new TabProfile { Tabs = profileData , AutoTabConfigs = autoTabConfigs . ToList ( ) } ;
706+ var profile = new TabProfile { Tabs = profileData , AutoTabConfigs = [ .. autoTabConfigs ] } ;
707707
708708 File . WriteAllText ( profilePath , System . Text . Json . JsonSerializer . Serialize ( profile ) ) ;
709709
0 commit comments