diff --git a/src/workspace.js b/src/workspace.js index 2c41d7758..c2c17cb19 100644 --- a/src/workspace.js +++ b/src/workspace.js @@ -363,7 +363,6 @@ module.exports = class Workspace extends Model { }) }; - this.originalFontSize = null; this.openers = []; this.destroyedItemURIs = []; if (this.element) { @@ -374,13 +373,10 @@ module.exports = class Workspace extends Model { } initialize() { - this.originalFontSize = this.config.get('editor.fontSize'); - this.defaultFontSize = this.config.get('editor.defaultFontSize'); this.project.onDidChangePaths(this.updateWindowTitle); this.subscribeToAddedItems(); this.subscribeToMovedItems(); this.subscribeToDockToggling(); - this.subscribeToFontSize(); } consumeServices({ serviceHub }) { @@ -1748,16 +1744,12 @@ module.exports = class Workspace extends Model { // Restore to the window's default editor font size. resetFontSize() { - if (this.defaultFontSize) { - this.config.set('editor.fontSize', this.defaultFontSize); - } + this.config.set( + 'editor.fontSize', + this.config.get('editor.defaultFontSize') + ); } - subscribeToFontSize() { - return this.config.onDidChange('editor.defaultFontSize', () => { - this.defaultFontSize = this.config.get('editor.defaultFontSize'); - }); - } // Removes the item's uri from the list of potential items to reopen. itemOpened(item) { let uri;