Commit 324e046b authored by Cédric Bellegarde's avatar Cédric Bellegarde

Do not set option if not needed

parent e10e5e18
Pipeline #59277 passed with stage
in 10 minutes and 15 seconds
......@@ -502,8 +502,10 @@ class WebView(WebKit2.WebView):
settings.set_property("enable-media-stream", True)
settings.set_property("enable-mediasource", False)
autoplay_videos = App().settings.get_value('autoplay-videos')
settings.set_property("media-playback-requires-user-gesture",
not autoplay_videos)
# Setting option to False make video playback buggy
if not autoplay_videos:
settings.set_property("media-playback-requires-user-gesture",
True)
settings.set_property("enable-developer-extras",
App().settings.get_value("developer-extras"))
settings.set_property("enable-offline-web-application-cache", True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment