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

[Bug]: Settings window can be opened multiple times #1781

Closed
webfiltered opened this issue Dec 4, 2024 · 6 comments · Fixed by #1786
Closed

[Bug]: Settings window can be opened multiple times #1781

webfiltered opened this issue Dec 4, 2024 · 6 comments · Fixed by #1786
Labels
bug Something isn't working

Comments

@webfiltered
Copy link
Contributor

Frontend Version

1.5.4

Expected Behavior

Only one instance of the settings dialog can ever be open at once.

Actual Behavior

Using the Ctrl + , shortcut, multiple instances of settings can be opened.

Steps to Reproduce

Video:

  1. 6x Ctrl + ,
  2. 2x Click overlay background
  3. 1x Escape
so-many-settings.mp4

Debug Logs

-

Browser Logs

Setting JSON

What browsers do you use to access the UI ?

No response

Other

No response

@webfiltered webfiltered added the bug Something isn't working label Dec 4, 2024
@webfiltered webfiltered self-assigned this Dec 4, 2024
@huchenlei
Copy link
Member

Related pr: #1695

@huchenlei
Copy link
Member

@hayden-fr Can you take a look?

@hayden-fr
Copy link
Contributor

Maybe it's caused by multiple clicks in a short period of time or other reasons? The solution is to add a unique key when showDialog.

Because the some function is not complete yet, I haven't had time to add key ​​to the existing dialog. I think I can fix this defect now.

@webfiltered
Copy link
Contributor Author

@hayden-fr If you're already on it, awesome! Seems we thought the same:

I think there was a recent change to add a dialog stack (which is great), but we probably need a "unique/dynamic" flag so things like settings can't be opened twice. Move to top of stack instead.

@hayden-fr
Copy link
Contributor

I think there was a recent change to add a dialog stack (which is great), but we probably need a "unique/dynamic" flag so things like settings can't be opened twice. Move to top of stack instead.

This is the original functional design.

@hayden-fr
Copy link
Contributor

Since I didn't consider opening the dialog through shortcut keys before, I postponed adding a key to the existing dialog and now add it.

I think there may be a lack of solution for managing unique keys to avoid duplication of them.

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

Successfully merging a pull request may close this issue.

3 participants