@@ -131,7 +131,6 @@ interface IPreferencesProps {
131131 readonly showBranchNameInRepoList : ShowBranchNameInRepoListSetting
132132 readonly branchSortOrder : BranchSortOrder
133133 readonly hideWindowOnQuit : boolean
134- readonly autoHideMenuBar : boolean
135134 readonly onEditGlobalGitConfig : ( ) => void
136135 readonly underlineLinks : boolean
137136 readonly showDiffCheckMarks : boolean
@@ -194,7 +193,6 @@ interface IPreferencesState {
194193 readonly showBranchNameInRepoList : ShowBranchNameInRepoListSetting
195194 readonly branchSortOrder : BranchSortOrder
196195 readonly hideWindowOnQuit : boolean
197- readonly autoHideMenuBar : boolean
198196
199197 readonly initiallySelectedTheme : ApplicationTheme
200198 readonly initiallySelectedTabSize : number
@@ -285,7 +283,6 @@ export class Preferences extends React.Component<
285283 showBranchNameInRepoList : this . props . showBranchNameInRepoList ,
286284 branchSortOrder : this . props . branchSortOrder ,
287285 hideWindowOnQuit : this . props . hideWindowOnQuit ,
288- autoHideMenuBar : this . props . autoHideMenuBar ,
289286 initiallySelectedTheme : this . props . selectedTheme ,
290287 initiallySelectedTabSize : this . props . selectedTabSize ,
291288 initiallySelectedDiffFontSize : this . props . selectedDiffFontSize ,
@@ -784,7 +781,6 @@ export class Preferences extends React.Component<
784781 useExternalCredentialHelper = { this . state . useExternalCredentialHelper }
785782 repositoryIndicatorsEnabled = { this . state . repositoryIndicatorsEnabled }
786783 hideWindowOnQuit = { this . state . hideWindowOnQuit }
787- autoHideMenuBar = { this . state . autoHideMenuBar }
788784 onUseWindowsOpenSSHChanged = { this . onUseWindowsOpenSSHChanged }
789785 onOptOutofReportingChanged = { this . onOptOutofReportingChanged }
790786 onUseExternalCredentialHelperChanged = {
@@ -794,7 +790,6 @@ export class Preferences extends React.Component<
794790 this . onRepositoryIndicatorsEnabledChanged
795791 }
796792 onHideWindowOnQuitChanged = { this . onHideWindowOnQuitChanged }
797- onAutoHideMenuBarChanged = { this . onAutoHideMenuBarChanged }
798793 />
799794 )
800795 break
@@ -834,10 +829,6 @@ export class Preferences extends React.Component<
834829 this . setState ( { hideWindowOnQuit } )
835830 }
836831
837- private onAutoHideMenuBarChanged = ( autoHideMenuBar : boolean ) => {
838- this . setState ( { autoHideMenuBar } )
839- }
840-
841832 private onLockFileDeleted = ( ) => {
842833 this . setState ( { existingLockFilePath : undefined } )
843834 }
@@ -1185,10 +1176,6 @@ export class Preferences extends React.Component<
11851176 dispatcher . setHideWindowOnQuit ( this . state . hideWindowOnQuit )
11861177 }
11871178
1188- if ( this . state . autoHideMenuBar !== this . props . autoHideMenuBar ) {
1189- dispatcher . setAutoHideMenuBar ( this . state . autoHideMenuBar )
1190- }
1191-
11921179 if ( this . state . hooksPreferencesDirty ) {
11931180 if ( this . state . enableGitHookEnv !== undefined ) {
11941181 setHooksEnvEnabled ( this . state . enableGitHookEnv )
0 commit comments