Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[master branch] Theme switching in Control Catalog is broken #5697

Closed
maxkatz6 opened this issue Mar 21, 2021 · 0 comments · Fixed by #5686
Closed

[master branch] Theme switching in Control Catalog is broken #5697

maxkatz6 opened this issue Mar 21, 2021 · 0 comments · Fixed by #5686
Assignees
Labels

Comments

@maxkatz6
Copy link
Member

Describe the bug
Application crashes, when user switches theme.

To Reproduce
Steps to reproduce the behavior:

  1. Open control catalog
  2. Select any other theme in the themes drop down
  3. Wait couple of seconds
  4. See error

Desktop (please complete the following information):

  • OS: Windows, Mac (I assume any other OS affected too)
  • Version: master branch 8bede23

Additional context

Probably introduced by #5070
IS NOT fixed with this PR - #5686

An item with the same key has already been added. Key: Avalonia.Animation.DoubleTransition
   at System.ThrowHelper.ThrowAddingDuplicateWithKeyArgumentException[T](T key)
   at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
   at Avalonia.Animation.Animatable.AddTransitions(IList items) in line 189
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants