Merge pull request 'Fix UnsupportedOperationException on addAll()' (#102) from FixTracer into master
Reviewed-by: Chaoscaot <chaoscaot444@gmail.com>
Dieser Commit ist enthalten in:
Commit
d6fa5cf5e7
@ -81,7 +81,7 @@ public class ShowManager {
|
||||
public void addSelection(int id) {
|
||||
if (showSelection == ShowSelection.ALL) return;
|
||||
if (showSelection == ShowSelection.NONE) showSelection = ShowSelection.SELECTIVE;
|
||||
selected.addAll(TraceManager.getFrame(id));
|
||||
TraceManager.getFrame(id).forEach(i -> selected.add(i));
|
||||
if (selected.size() == TraceManager.getAllTraces().size()) {
|
||||
showSelection = ShowSelection.ALL;
|
||||
clear();
|
||||
@ -91,7 +91,7 @@ public class ShowManager {
|
||||
public void removeSelection(int id) {
|
||||
if (showSelection == ShowSelection.NONE) return;
|
||||
if (showSelection == ShowSelection.ALL) selected = TraceManager.getAllTraces();
|
||||
selected.removeAll(TraceManager.getFrame(id));
|
||||
TraceManager.getFrame(id).forEach(i -> selected.remove(i));
|
||||
showSelection = ShowSelection.SELECTIVE;
|
||||
if (selected.isEmpty()) showSelection = ShowSelection.NONE;
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren