Added color not remembered when reopening file

Issue #461 resolved
Christopher Keil repo owner created an issue

USE CASE: WHAT DO YOU WANT TO DO?

When colors are added for a dataset, they should always be retained after closing the file.

STEPS TO REPRODUCE AN ISSUE (OR TRIGGER A NEW FEATURE)

Rob's issue in pull_request 62:

  1. Open small_133x133.cdt
  2. Add a new color (blue) at -0.5 & click apply
  3. Open test_dataset3.txt
  4. Remove the black color
  5. Change the value of the left side red thumb to 0
  6. Open small_133x133.cdt again using the open recent menu
  7. Open the test_dataset3.txt file again using the recent menu

Here's what I observed:

  1. The blue color was gone in step 6 in small_133x133.cdt even though that was the last change I'd made.
  2. The colors in step 7 were correct and up-to-date

So the problem appears to be that adding a new color is not remembered.

CURRENT BEHAVIOR

Added color is sometimes not remembered when reopening the file later.

EXPECTED BEHAVIOR

Added color is always remembered after clicking "Apply"

DEVELOPERS ONLY SECTION

SUGGESTED CHANGE (Pseudocode optional)

e.g. Add a color selection class

FILES AFFECTED (where the changes will be implemented) - developers only

ColorChooser package, Preferences related methods

LEVEL OF EFFORT - developers only

minor

COMMENTS

Comments (2)

  1. Log in to comment