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

Apply fixes by rinigus

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