Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

LIVE-881 - Fix window not opening for users who have "dusk" theme #4711

Merged
merged 3 commits into from
Feb 3, 2022

Conversation

ofreyssinet-ledger
Copy link
Contributor

@ofreyssinet-ledger ofreyssinet-ledger commented Feb 3, 2022

🦒 Context (issues, jira)

LIVE-881
App is not starting when the theme was "dusk" (app is actually starting but the window is never created).

💻 Description / Demo (image or video)

A "valid" value for settings.theme is now either "dark" or "light" as we removed the "dusk" theme (cf1e8f1).

3 fixes:

  1. in src/main/window-lifecycle.js, make sure to not set the theme query parameter as an invalid value.
  2. in preloader/index.js adding a fallback logic (to the dark theme) in the preloader that uses that query param.
  3. (bonus, not actually needed for solving this crash but I think it's safer to have it): adding a validity check in the selector so that it can be used safely anywhere.

🖤 Expectations to reach

PR must pass CI, merge develop if conflicts, do not force push. Thanks!

  • on QA: at least one of these two checkboxes must be checked:
    • a specific test planned is defined on Jira
    • this PR is covered by automatic UI test
  • on delivery: at least one of these two checkboxes must be checked:
    • Option 1: no impact: The changes of this PR have ZERO impact on the userland (invisible for users)
    • Option 2: atomic delivery: the changes is atomic and complete (no partial delivery)

PR must pass CI, merge develop if conflicts, do not force push. Thanks!

@ofreyssinet-ledger ofreyssinet-ledger requested a review from a team as a code owner February 3, 2022 15:15
@ofreyssinet-ledger ofreyssinet-ledger self-assigned this Feb 3, 2022
@LFBarreto LFBarreto merged commit 5c817b4 into releases/2.38.x Feb 3, 2022
@valpinkman valpinkman deleted the LIVE-881 branch February 8, 2022 09:26
valpinkman added a commit that referenced this pull request Feb 9, 2022
* releases/2.38.x:
  v2.38.2
  (LL-MKT): remove 1h graph range and mini graph color while we sort out the data (#4712)
  LIVE-881 - Fix window not opening for users who have "dusk" theme (#4711)
  v2.38.1
  LL-8791 LL-9146 (Market): release (#4667)
  v2.38.0
valpinkman added a commit that referenced this pull request Feb 9, 2022
* releases/2.38.x: (55 commits)
  v2.38.2
  (LL-MKT): remove 1h graph range and mini graph color while we sort out the data (#4712)
  LIVE-881 - Fix window not opening for users who have "dusk" theme (#4711)
  v2.38.1
  LL-8791 LL-9146 (Market): release (#4667)
  v2.38.0
  ledger-live-common 21.32.0 (#4696)
  More padding bottom
  Add padding bottom
  Remove developer CTA in platform catalog
  LL-9044 Change plugin rendering on Manager
  LL-9023 Remove bold from token-id in nft viewer (#4693)
  LL-9028 Handle new lastSeenDevice event on DeviceActions (#4659)
  LL-9176 Add trackers for the NFT feature (#4694)
  design fix
  swap: display parent accounts in the target account drawer
  [LL-8097] sell/fund flow (#4361)
  LL-7480: swap wording for the exchange drawer (#4377)
  LL-8982 Add message for NFT 0 qty error (#4682)
  chore(publish): use the s3 publisher & provider for nightlies (#4685)
  ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants