Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix first undo empty sessionlist #165

Conversation

marcustw
Copy link

No description provided.

@erisjacey erisjacey added this to the v1.4 milestone Oct 29, 2020
Copy link

@erisjacey erisjacey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just small nits

@@ -15,6 +15,7 @@
private final ObservableList<Attributes> currentAttributeList;
private final List<List<Attributes>> attributeStateList;
private int currentStatePointer;
private final List<String> tracker;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps a comment could be added to provide a brief description as to what tracker is for? The name isn't as clear atm.

this.currentAttributeList.setAll(attributeList);
if (tracker.isEmpty() || !tracker.get(tracker.size() - 1).equals(name)) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps a comment could be added here to describe what happens?

@marcustw marcustw merged commit 1d97a69 into AY2021S1-CS2103T-W16-4:master Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants