Skip to content

Commit

Permalink
fix crash on delete working dir
Browse files Browse the repository at this point in the history
  • Loading branch information
LazuliKao committed May 2, 2023
1 parent 0db5f36 commit a386e7c
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 a386e7c

Please sign in to comment.