mnemosyne-proj / mnemosyne

Mnemosyne: efficient learning with powerful digital flash-cards.
https://mnemosyne-proj.org/
Other
507 stars 74 forks source link

Initialize combobox with stored variant index in statistics widget #236

Closed AndiPersti closed 1 year ago

AndiPersti commented 1 year ago

The combobox on a statistics page wasn't set to the correct index when the last shown variant of that page wasn't the first one in the list of combobox items.

Steps to reproduce: 1) Open the statistics widget and choose a variant which isn't the first one in the combobox list. 2) Close and reopen the statistics widget.

Expected result: The chart and combobox text will show the variant that was displayed before the widget was closed.

Actual behaviour: The correct chart is shown, but the combobox shows the text for the first item in the list.

pbienst commented 1 year ago

Thanks!