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

Make sure to catch all user agent changes

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