Skip to content

Commit 7fc9b35

Browse files
committed
Fixed NotSupportedException in ErrorWindow
1 parent d3f8b9d commit 7fc9b35

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Arma.Studio.ErrorWindow/PluginMain.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,13 @@ private void FileManagement_CollectionChanged(object sender, System.Collections.
7575
continue;
7676
}
7777
var lintinfos = await lintable.GetLintInfos(file.GetText(), CancellationToken.None);
78-
foreach (var it in lintinfos)
78+
System.Windows.Application.Current.Dispatcher.Invoke(() =>
7979
{
80-
this.LintInfos.Add(it);
81-
}
80+
foreach (var it in lintinfos)
81+
{
82+
this.LintInfos.Add(it);
83+
}
84+
});
8285
}
8386
}, String.Format(Properties.Language.PBO_LintingFiles_0file, pbo.Name));
8487
}

0 commit comments

Comments
 (0)