• R/O
  • HTTP
  • SSH
  • HTTPS

open-tween: Commit

開発に使用するリポジトリ


Commit MetaInfo

Revisionb9a985275331d64bc9b742a88a94c99fe8a12d38 (tree)
Time2020-03-13 04:13:57
AuthorKimura Youichi <kim.upsilon@bucy...>
CommiterKimura Youichi

Log Message

不要な ListView.SelectedIndices への参照を削除

Change Summary

Incremental Difference

--- a/OpenTween/Tween.cs
+++ b/OpenTween/Tween.cs
@@ -1942,10 +1942,10 @@ namespace OpenTween
19421942 var indices = listView.SelectedIndices.Cast<int>().ToArray();
19431943 this.CurrentTab.SelectPosts(indices);
19441944
1945- if (listView.SelectedIndices.Count != 1)
1945+ if (indices.Length != 1)
19461946 return;
19471947
1948- var index = listView.SelectedIndices[0];
1948+ var index = indices[0];
19491949 if (index > listView.VirtualListSize - 1) return;
19501950
19511951 this.PushSelectPostChain();
Show on old repository browser