@@ -86,10 +86,7 @@ public string UpdateProgressStatus
8686 set { SetProperty ( ref _updateProgressStatus , value ) ; }
8787 }
8888
89- public bool IsProtected
90- {
91- get { return _isCustomFilterEnabled || _isFamilyFilterEnabled || _isAdultFilterEnabled ; }
92- }
89+ public bool IsProtected => _isCustomFilterEnabled || _isFamilyFilterEnabled || _isAdultFilterEnabled ;
9390
9491 public string IsProtectedText
9592 {
@@ -99,11 +96,11 @@ public string IsProtectedText
9996 {
10097 return "Status: ACTIVE. You are protected by Custom Filter." ;
10198 }
102- else if ( _isFamilyFilterEnabled )
99+ if ( _isFamilyFilterEnabled )
103100 {
104101 return "Status: ACTIVE. You are protected by Free Family Filter." ;
105102 }
106- else if ( _isAdultFilterEnabled )
103+ if ( _isAdultFilterEnabled )
107104 {
108105 return "Status: ACTIVE. You are protected by Free Adult Filter." ;
109106 }
@@ -662,7 +659,7 @@ public async void HandleCustomStamp()
662659 {
663660 try
664661 {
665- var stamp = _appConfiguration . Proxies . Where ( p => p . Name . Equals ( Global . DefaultCustomFilterKey ) ) . FirstOrDefault ( ) ;
662+ var stamp = _appConfiguration . Proxies . FirstOrDefault ( p => p . Name . Equals ( Global . DefaultCustomFilterKey ) ) ;
666663 if ( stamp == null )
667664 {
668665 _regionManager . RequestNavigate ( "ContentRegion" , "StampView" ) ;
@@ -867,7 +864,7 @@ private bool SetStaticStamp(string filter)
867864 RemoveStaticStamps ( ) ;
868865 DnscryptProxyConfigurationManager . LoadConfiguration ( ) ;
869866 _dnscryptProxyConfiguration = DnscryptProxyConfigurationManager . DnscryptProxyConfiguration ;
870- var stamp = _appConfiguration . Proxies . Where ( p => p . Name . Equals ( filter ) ) . FirstOrDefault ( ) ;
867+ var stamp = _appConfiguration . Proxies . FirstOrDefault ( p => p . Name . Equals ( filter ) ) ;
871868 if ( stamp != null )
872869 {
873870 if ( ! string . IsNullOrEmpty ( stamp . Stamp ) )
0 commit comments