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

Fix isMobile handling

parent f31eb9bb
...@@ -295,7 +295,7 @@ Kirigami.ApplicationWindow { ...@@ -295,7 +295,7 @@ Kirigami.ApplicationWindow {
currentWebView.userAgent.isMobile = true currentWebView.userAgent.isMobile = true
} }
currentWebView.reload() currentWebView.reload()
tabs.tabsModel.setTab(tabs.tabsModel.currentTab) tabs.tabsModel.setTab(tabs.tabsModel.currentTab, currentWebView.url, currentWebView.userAgent.isMobile)
} }
} }
] ]
......
...@@ -67,12 +67,12 @@ public: ...@@ -67,12 +67,12 @@ public:
QVector<TabState> tabs() const; QVector<TabState> tabs() const;
Q_INVOKABLE void setTab(int index, const QString &url, bool isMobile = false); Q_INVOKABLE void setTab(int index, const QString &url, bool isMobile = true);
Q_INVOKABLE TabState tab(int index); Q_INVOKABLE TabState tab(int index);
Q_INVOKABLE void loadInitialTabs(); Q_INVOKABLE void loadInitialTabs();
Q_INVOKABLE void newTab(const QString &url, bool isMobile = false); Q_INVOKABLE void newTab(const QString &url, bool isMobile = true);
Q_INVOKABLE void createEmptyTab(); Q_INVOKABLE void createEmptyTab();
Q_INVOKABLE void closeTab(int index); Q_INVOKABLE void closeTab(int index);
Q_INVOKABLE void load(const QString &url); Q_INVOKABLE void load(const QString &url);
......
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