Uploaded image for project: 'GPII - Global Public Inclusive Infrastructure'
  1. GPII - Global Public Inclusive Infrastructure
  2. GPII-3452

Failure at resetting high contrast theme on system startup

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Applying defaultSettings.json5 on system startup fails at resetting high contrast theme with the error "TypeError: Cannot read property 'get' of undefined".

      After investigation, this is because the gpii-windows expects a settings block in a structure with the "path" element:

      "settings": {
          "HighContrastOn": {
              "value": false,
              "path": "pvParam.dwFlags.HCF_HIGHCONTRASTON"
          }
      }
      

      However, this "path" element is removed at the lifecycle manager restoreSystem() call.

      The fix is to improve the setting transforming handler used by the lifecycle manager to not remove the "path" element.

        Attachments

          Activity

            People

            • Assignee:
              cli@ocad.ca Cindy Qi Li
              Reporter:
              cli@ocad.ca Cindy Qi Li
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: