herbix / hoi4modutilities

A VSCode extension that contains utilities for Heart of Iron IV mods developers
MIT License
74 stars 9 forks source link

[BUG] Selected focus condition gets reset when re-rendered. #52

Closed AndreasBrostrom closed 1 year ago

AndreasBrostrom commented 1 year ago

Describe the bug When selecting a set of conditions for the focus tree previewer it get reset when the the tree re-renders.

To Reproduce Steps to reproduce the behavior:

  1. Open up a focus tree vanilla or modded
  2. Make sure you can use focus tree conditions (ie. not disabled useConditionInFocus)
  3. Select a condition set
  4. Edit the three
  5. Selection is reset

Expected behavior The selection to be kept even if the tree is re-rendered.

Screenshots image

Desktop (please complete the following information):

Console Logs N/A

herbix commented 1 year ago

Fixed in https://github.com/herbix/hoi4modutilities/commit/485d83281f8597fdaddc9518549bde9e780c2c99.