Skip to content

Commit

Permalink
Merge pull request #24 from LipPkg/fix/crash-on-delete-dir
Browse files Browse the repository at this point in the history
fix crash on delete working dir
  • Loading branch information
futrime authored May 12, 2023
2 parents 7db7022 + a386e7c commit 3733478
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/LipUI/Global.cs
Original file line number Diff line number Diff line change
Expand Up @@ -412,10 +412,9 @@ void Save()
void CollectionChangeHandler(object sender, NotifyCollectionChangedEventArgs e)
{
Save();
foreach (var item in e.NewItems)
{
Subscribe(item);
}
if (e.NewItems is not null)
foreach (var item in e.NewItems)
Subscribe(item);
}
void Subscribe(object? sub)
{
Expand Down

0 comments on commit 3733478

Please sign in to comment.