From 9c404a1047aa0bd46cee07fa5f1431b284ed3f07 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Tue, 16 Mar 2021 12:13:25 -0400 Subject: [PATCH] show browser favourites bar by default --- ui/app/AppLayouts/Browser/BrowserHeader.qml | 2 +- ui/app/AppLayouts/Profile/Sections/BrowserContainer.qml | 4 ++-- ui/app/AppMain.qml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/app/AppLayouts/Browser/BrowserHeader.qml b/ui/app/AppLayouts/Browser/BrowserHeader.qml index 3490e33d69..b79f9f2e19 100644 --- a/ui/app/AppLayouts/Browser/BrowserHeader.qml +++ b/ui/app/AppLayouts/Browser/BrowserHeader.qml @@ -258,7 +258,7 @@ Rectangle { Loader { id: favoritesBarLoader - active: appSettings.showFavoritesBar + active: appSettings.shouldShowFavoritesBar height: active ? item.height : 0 anchors.top: barRow.bottom anchors.left: parent.left diff --git a/ui/app/AppLayouts/Profile/Sections/BrowserContainer.qml b/ui/app/AppLayouts/Profile/Sections/BrowserContainer.qml index dfb7e9ad9c..ac2b1fe6a9 100644 --- a/ui/app/AppLayouts/Profile/Sections/BrowserContainer.qml +++ b/ui/app/AppLayouts/Profile/Sections/BrowserContainer.qml @@ -49,9 +49,9 @@ Item { //% "Show favorites bar" text: qsTrId("show-favorites-bar") isSwitch: true - switchChecked: appSettings.showFavoritesBar + switchChecked: appSettings.shouldShowFavoritesBar onClicked: function (checked) { - appSettings.showFavoritesBar = checked + appSettings.shouldShowFavoritesBar = checked } } diff --git a/ui/app/AppMain.qml b/ui/app/AppMain.qml index 41371f67ae..4ab810d9d9 100644 --- a/ui/app/AppMain.qml +++ b/ui/app/AppMain.qml @@ -110,7 +110,7 @@ RowLayout { // Browser settings property bool showBrowserSelector: true property bool openLinksInStatus: true - property bool showFavoritesBar: false + property bool shouldShowFavoritesBar: true property string browserHomepage: "" property int browserSearchEngine: Constants.browserSearchEngineNone property int browserEthereumExplorer: Constants.browserEthereumExplorerNone