mirror of
https://github.com/atom/atom.git
synced 2026-02-12 23:55:10 -05:00
Only reset font size if font size has been changed
This commit is contained in:
@@ -623,7 +623,8 @@ class Workspace extends Model
|
||||
|
||||
# Restore to the window's original editor font size.
|
||||
resetFontSize: ->
|
||||
atom.config.set("editor.fontSize", @originalFontSize)
|
||||
if @originalFontSize
|
||||
atom.config.set("editor.fontSize", @originalFontSize)
|
||||
|
||||
# Removes the item's uri from the list of potential items to reopen.
|
||||
itemOpened: (item) ->
|
||||
|
||||
Reference in New Issue
Block a user