File tree Expand file tree Collapse file tree
src/vs/workbench/electron-browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -990,10 +990,13 @@ export class Workbench implements IPartService {
990990
991991 // Preserve zen mode only on reload. Real quit gets out of zen mode so novice users do not get stuck in zen mode.
992992 const zenConfig = this . configurationService . getValue < IZenModeSettings > ( 'zenMode' ) ;
993- const zenModeActive = ( zenConfig . restore || reason === ShutdownReason . RELOAD ) && this . zenMode . active ;
994- if ( zenModeActive ) {
993+ const restoreZenMode = this . zenMode . active && ( zenConfig . restore || reason === ShutdownReason . RELOAD ) ;
994+ if ( restoreZenMode ) {
995995 this . storageService . store ( Workbench . zenModeActiveStorageKey , true , StorageScope . WORKSPACE ) ;
996996 } else {
997+ if ( this . zenMode . active ) {
998+ this . toggleZenMode ( true ) ;
999+ }
9971000 this . storageService . remove ( Workbench . zenModeActiveStorageKey , StorageScope . WORKSPACE ) ;
9981001 }
9991002
You can’t perform that action at this time.
0 commit comments