Skip to content

Commit e7f908c

Browse files
committed
不要な ListView.SelectedIndices への参照を削除
1 parent d62e270 commit e7f908c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

OpenTween/Tween.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1964,10 +1964,10 @@ private void MyList_SelectedIndexChanged(object sender, EventArgs e)
19641964
var indices = listView.SelectedIndices.Cast<int>().ToArray();
19651965
this.CurrentTab.SelectPosts(indices);
19661966

1967-
if (listView.SelectedIndices.Count != 1)
1967+
if (indices.Length != 1)
19681968
return;
19691969

1970-
var index = listView.SelectedIndices[0];
1970+
var index = indices[0];
19711971
if (index > listView.VirtualListSize - 1) return;
19721972

19731973
this.PushSelectPostChain();

0 commit comments

Comments
 (0)