sailfishos / sailfish-browser

Sailfish Browser
https://github.com/sailfishos/sailfish-browser/wiki/Sailfish-Browser-wiki
Mozilla Public License 2.0
307 stars 87 forks source link

Create a preference for tab hiding #1054

Open llewelld opened 10 months ago

llewelld commented 10 months ago

Currently the tab/window hiding functionality can be enabled and disabled by setting the showHidden flag in the QML in TabView.qml:

https://github.com/llewelld/sailfish-browser/blob/e2b97dadf035ee3d94dd35264b2694934b858ef3/apps/browser/qml/pages/components/TabView.qml#L117C26-L117C26

  model: TabFilterModel {
      sourceModel: tabItem.privateMode ? webView.privateTabModel : webView.persistentTabModel
      showHidden: false
  }

To allow this to be set dynamically by the user we should create a preference that allows this to be configured using about.config.