Verified Commit 5064ce73 authored by Jonah Brüchert's avatar Jonah Brüchert 🌳
Browse files

Make sure to catch all user agent changes

parent 99197169
...@@ -45,6 +45,7 @@ WebEngineView { ...@@ -45,6 +45,7 @@ WebEngineView {
UserAgentGenerator { UserAgentGenerator {
id: userAgent id: userAgent
isMobile: Kirigami.Settings.isMobile isMobile: Kirigami.Settings.isMobile
onUserAgentChanged: tabs.tabsModel.setTab(tabs.tabsModel.currentTab, webEngineView.url, isMobile)
} }
Image { Image {
......
...@@ -295,7 +295,6 @@ Kirigami.ApplicationWindow { ...@@ -295,7 +295,6 @@ Kirigami.ApplicationWindow {
currentWebView.userAgent.isMobile = true currentWebView.userAgent.isMobile = true
} }
currentWebView.reload() currentWebView.reload()
tabs.tabsModel.setTab(tabs.tabsModel.currentTab, currentWebView.url, currentWebView.userAgent.isMobile)
} }
} }
] ]
......
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