Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[PATCH] よくわからないが、こうすると落ちなくなる (酷)
StarryEyes/Hotfixes/ViewModelHelperRx.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/StarryEyes/Hotfixes/ViewModelHelperRx.cs b/StarryEyes/Hotfixes/ViewModelHelperRx.cs
index 811f4ed..2efd9c6 100644
--- a/StarryEyes/Hotfixes/ViewModelHelperRx.cs
+++ b/StarryEyes/Hotfixes/ViewModelHelperRx.cs
@@ -77,7 +77,7 @@ namespace StarryEyes
switch (e.Action)
{
case NotifyCollectionChangedAction.Add:
- target.Insert(e.NewStartingIndex, converter((TModel)e.NewItems[0]));
+ target.Add(converter((TModel) e.NewItems[0]));
break;
case NotifyCollectionChangedAction.Move:
target.Move(e.OldStartingIndex, e.NewStartingIndex);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment