cleaned up codebase and comments, and fixed unexpected behavior relating to incorrect values
This commit is contained in:
@@ -65,7 +65,7 @@ class CellGUI extends JPanel {
|
|||||||
// Populate the cell with the appropriate value or notes.
|
// Populate the cell with the appropriate value or notes.
|
||||||
if(cell.getValue() == 0) {
|
if(cell.getValue() == 0) {
|
||||||
internalPanel.setLayout(noteLayout);
|
internalPanel.setLayout(noteLayout);
|
||||||
generateNotes(noteMode);
|
generateNotes(true);
|
||||||
} else {
|
} else {
|
||||||
internalPanel.setLayout(valueLayout);
|
internalPanel.setLayout(valueLayout);
|
||||||
valueLabel.setText(Integer.toString(cell.getValue()));
|
valueLabel.setText(Integer.toString(cell.getValue()));
|
||||||
@@ -130,7 +130,7 @@ class CellGUI extends JPanel {
|
|||||||
public void removeValue() {
|
public void removeValue() {
|
||||||
if(!selected) return;
|
if(!selected) return;
|
||||||
|
|
||||||
cell.setValue(0, true);
|
cell.setValue(0, false);
|
||||||
if(!cell.isInitValue())
|
if(!cell.isInitValue())
|
||||||
valueLabel.setText("");
|
valueLabel.setText("");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user