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

Apply fixes by rinigus

parent 9a1addb6
...@@ -46,8 +46,7 @@ Kirigami.ScrollablePage { ...@@ -46,8 +46,7 @@ Kirigami.ScrollablePage {
text: i18n("New") text: i18n("New")
onTriggered: { onTriggered: {
// Somewhat weird behaviour, consider always just opening "about:blank" // Somewhat weird behaviour, consider always just opening "about:blank"
tabs.tabsModel.newTab(rootPage.privateMode ? "about:blank" : BrowserManager.homepage) tabs.tabsModel.newTab(rootPage.privateMode ? "about:blank" : BrowserManager.homepage, Kirigami.Settings.isMobile)
tabs.currentIndex = tabs.count - 1;
pageStack.pop() pageStack.pop()
} }
} }
......
...@@ -44,7 +44,7 @@ WebEngineView { ...@@ -44,7 +44,7 @@ WebEngineView {
UserAgentGenerator { UserAgentGenerator {
id: userAgent id: userAgent
isMobile: Kirigami.Settings.isMobile isMobile: model.isMobile
onUserAgentChanged: tabs.tabsModel.setTab(index, webEngineView.url, isMobile) onUserAgentChanged: tabs.tabsModel.setTab(index, webEngineView.url, isMobile)
} }
......
...@@ -209,7 +209,7 @@ bool TabsModel::loadTabs() ...@@ -209,7 +209,7 @@ bool TabsModel::loadTabs()
bool TabsModel::saveTabs() const bool TabsModel::saveTabs() const
{ {
// only save if not in private mode // only save if not in private mode
if (!m_privateMode) { if (!m_privateMode && !m_tabsReadOnly) {
QString outputDir = QStandardPaths::writableLocation(QStandardPaths::ConfigLocation) QString outputDir = QStandardPaths::writableLocation(QStandardPaths::ConfigLocation)
+ QStringLiteral("/angelfish/"); + QStringLiteral("/angelfish/");
......
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