Skip to content

Commit

Permalink
Fixed NotSupportedException in ErrorWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
X39 committed Mar 14, 2020
1 parent d3f8b9d commit 7fc9b35
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Arma.Studio.ErrorWindow/PluginMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,13 @@ private void FileManagement_CollectionChanged(object sender, System.Collections.
continue;
}
var lintinfos = await lintable.GetLintInfos(file.GetText(), CancellationToken.None);
foreach (var it in lintinfos)
System.Windows.Application.Current.Dispatcher.Invoke(() =>
{
this.LintInfos.Add(it);
}
foreach (var it in lintinfos)
{
this.LintInfos.Add(it);
}
});
}
}, String.Format(Properties.Language.PBO_LintingFiles_0file, pbo.Name));
}
Expand Down

0 comments on commit 7fc9b35

Please sign in to comment.