ladybird
ladybird copied to clipboard
LibWebView+WebContent+UI: Migrate autoplay settings to `about:settings`
https://github.com/user-attachments/assets/273a0a08-299b-4b8b-8ef4-00b9affb2cba
The dialog will look nicer once we support dialog::backdrop :) Light mode:
How do we expect the "Enable on all sites" toggle to interact with the --enable-autoplay command line option?
Previously, setting the command line option would set the UI checkbox, but with this change setting the CLI flag doesn't' set the UI option.
I don't know that they really need to interact, given that --enable-autoplay is just a testing flag. These settings are persistent, so a command line flag shouldn't affect them. If anything, I'd just disable the autoplay "Settings..." if the flag is present.
If anything, I'd just disable the autoplay "Settings..." if the flag is present.
IMO this, plus a little message by the setting that the flag has force-enabled it.
We'll see this now when --enable-autoplay is present: