Skip to content

Commit

Permalink
revert to old c# specs
Browse files Browse the repository at this point in the history
  • Loading branch information
roubachof committed Jun 2, 2021
1 parent d97171d commit a953a3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sharpnado.TaskLoaderView/TaskLoaderNotifierBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public Exception Error

public TimeSpan AutoResetDelay { get; }

protected object SyncRoot { get; } = new();
protected object SyncRoot { get; } = new object();

public abstract void Load(bool isRefreshing = false);

Expand Down
2 changes: 1 addition & 1 deletion Sharpnado.TaskLoaderView/TaskLoaderNotifier{T}.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ protected override void OnTaskSuccessfullyCompleted(ITaskMonitor task)
InternalLogger.Debug(Tag, () => "OnTaskSuccessfullyCompleted()");
RaisePropertyChanged(nameof(IsSuccessfullyCompleted));

if (!DisableEmptyState && (Result is null or ICollection { Count: 0 }))
if (!DisableEmptyState && (Result == null || (Result is ICollection collection && collection.Count == 0)))
{
InternalLogger.Debug(Tag, () => "Showing empty state");
ShowEmptyState = true;
Expand Down

0 comments on commit a953a3e

Please sign in to comment.