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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make DGT board Play Menu shortcut configurable #15044

Closed
wants to merge 6 commits into from

Conversation

tors42
Copy link
Contributor

@tors42 tors42 commented Apr 6, 2024

If one has played with DGT board,
there's a "DGT board" entry added to the topnav Play menu.
It isn't possible to remove this entry.

This Pull Request makes it possible to configure if the entry should be available or not.

Maybe there are many ways to implement this feature,
and maybe simpler ways than this one... But this was what I first thought of,
and found it interesting to try to implement - and at least it seems to perform the job...

dgt-board-menu-shortcut.webm

Became aware of this issue via Lichess Feedback post,
and noticed I had the menu entry too, from reproducing and fixing another bug with DGT. 馃槄

Note, this Pull Request also includes the commit from Pull Request #15043 - not sure if there are any good ways to handle Pull Requests which depend on eachother in GitHub...

This commit adds the possibility to configure the inclusion or exclusion
of the "DGT board" play menu entry, via the /dgt/configure page.
Before, the "DGT board" entry would be automatically added to the menu
upon generating a token (`/dgt/config/token`) and/or playing
(`/dgt/play`), and there was no way to remove it.
@tors42 tors42 closed this Apr 28, 2024
@tors42
Copy link
Contributor Author

tors42 commented Apr 28, 2024

I suspect there exists a more clever way to toggle/remove the DGT board play meny shortcut,
so closing this idea for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant