Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #2038 from cezaraugusto/feature-disable-title-mode
Browse files Browse the repository at this point in the history
Always show URL bar. closes #1984
  • Loading branch information
bbondy committed Jun 6, 2016
2 parents 2b8f452 + 85c6ecc commit ac97957
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/extensions/brave/locales/en-US/preferences.properties
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,4 @@ alwaysAllow=Always allow
alwaysDeny=Always deny
appearanceSettings=Appearance settings
autoHideMenuBar=Hide the menu bar by default
disableTitleMode=Always show URL bar
1 change: 1 addition & 0 deletions js/about/preferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ class GeneralTab extends ImmutableComponent {
{
isDarwin ? null : <SettingCheckbox dataL10nId='autoHideMenuBar' prefKey={settings.AUTO_HIDE_MENU} settings={this.props.settings} onChangeSetting={this.props.onChangeSetting} />
}
<SettingCheckbox dataL10nId='disableTitleMode' prefKey={settings.DISABLE_TITLE_MODE} settings={this.props.settings} onChangeSetting={this.props.onChangeSetting} />
</SettingsList>
</SettingsList>
}
Expand Down
3 changes: 2 additions & 1 deletion js/components/navigationBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ class NavigationBar extends ImmutableComponent {
!['about:blank', 'about:newtab'].includes(this.props.activeFrame.get('location')) &&
!this.loading &&
!this.props.navbar.getIn(['urlbar', 'focused']) &&
!this.props.navbar.getIn(['urlbar', 'active'])
!this.props.navbar.getIn(['urlbar', 'active']) &&
getSetting(settings.DISABLE_TITLE_MODE) === false
}

componentDidMount () {
Expand Down
3 changes: 2 additions & 1 deletion js/constants/appConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ module.exports = {
'security.passwords.manager-enabled': true,
'security.passwords.one-password-enabled': false,
'security.passwords.dashlane-enabled': false,
'general.downloads.default-save-path': null
'general.downloads.default-save-path': null,
'general.disable-title-mode': process.platform === 'win32'
}
}
1 change: 1 addition & 0 deletions js/constants/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const settings = {
USERAGENT: 'general.useragent.value',
DEFAULT_DOWNLOAD_SAVE_PATH: 'general.downloads.default-save-path',
AUTO_HIDE_MENU: 'general.autohide-menu',
DISABLE_TITLE_MODE: 'general.disable-title-mode',
// Search tab
DEFAULT_SEARCH_ENGINE: 'search.default-search-engine',
// Tabs tab
Expand Down

0 comments on commit ac97957

Please sign in to comment.