File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ public Exception Error
167167
168168 public TimeSpan AutoResetDelay { get ; }
169169
170- protected object SyncRoot { get ; } = new ( ) ;
170+ protected object SyncRoot { get ; } = new object ( ) ;
171171
172172 public abstract void Load ( bool isRefreshing = false ) ;
173173
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ protected override void OnTaskSuccessfullyCompleted(ITaskMonitor task)
135135 InternalLogger . Debug ( Tag , ( ) => "OnTaskSuccessfullyCompleted()" ) ;
136136 RaisePropertyChanged ( nameof ( IsSuccessfullyCompleted ) ) ;
137137
138- if ( ! DisableEmptyState && ( Result is null or ICollection { Count : 0 } ) )
138+ if ( ! DisableEmptyState && ( Result == null || ( Result is ICollection collection && collection . Count == 0 ) ) )
139139 {
140140 InternalLogger . Debug ( Tag , ( ) => "Showing empty state" ) ;
141141 ShowEmptyState = true ;
You can’t perform that action at this time.
0 commit comments