Revision | f4f39c7c608df129b1c00aeccd94ffa795502c43 (tree) |
---|---|
Time | 2020-09-27 21:56:30 |
Author | Kazuhiro Fujieda <fujieda@user...> |
Commiter | Kazuhiro Fujieda |
分類でグループから艦娘を外せないことがあるのを直す
@@ -91,14 +91,9 @@ namespace KancolleSniffer.View.ShipListPanel | ||
91 | 91 | var cb = (CheckBox)sender; |
92 | 92 | var group = (int)cb.Tag % 10; |
93 | 93 | var idx = (int)cb.Tag / 10; |
94 | + GroupSettings[group].RemoveAll(id => id == _shipListPanel.GetShip(idx).Id); | |
94 | 95 | if (cb.Checked) |
95 | - { | |
96 | 96 | GroupSettings[group].Add(_shipListPanel.GetShip(idx).Id); |
97 | - } | |
98 | - else | |
99 | - { | |
100 | - GroupSettings[group].Remove(_shipListPanel.GetShip(idx).Id); | |
101 | - } | |
102 | 97 | GroupUpdated = true; |
103 | 98 | } |
104 | 99 |