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

Widgets that default to "Hidden" don't save their state between application restarts #1201

Open
simihartstein opened this issue Jan 30, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@simihartstein
Copy link

Describe the bug

When widgets are created with defaultState: WidgetState.Hidden, they will not save their state between the application reopening. The widget will always start hidden.

The state will be restored correctly after switching frontstages. Including opening a different iModel.

To Reproduce

  1. Create a UIProvider that
  • provides a widget with the default state to hidden.
  • has some way to open the widget.
  1. Open the widget
  2. Restart the application and open an iModel

The widget will start hidden.

Expected Behavior

I expect the widget would be restored to its former visibility, like all the other default widget states.

Screenshots

No response

Desktop (please complete the applicable information)

Desktop app
AppUI: 4.17.6
iTwinUI: 3.16.0

Additional context

No response

@simihartstein simihartstein added the bug Something isn't working label Jan 30, 2025
@simihartstein simihartstein changed the title Widgets that default to "Hidden" don't save their state between application Widgets that default to "Hidden" don't save their state between application restarts Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant