Skip to content

Commit

Permalink
Rename view.show_console to view.show_leftsidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
yishn committed Dec 27, 2015
1 parent 090975c commit b48315f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/setting.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ exports
.default('view.comments_minheight', 20)
.default('view.leftsidebar_width', 250)
.default('view.fuzzy_stone_placement', true)
.default('view.show_console', false)
.default('view.show_leftsidebar', false)
.default('view.show_comments', false)
.default('view.show_coordinates', false)
.default('view.show_variations', true)
Expand Down
2 changes: 1 addition & 1 deletion view/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ function loadSettings() {
$('goban').addClass('coordinates')
if (setting.get('view.show_variations'))
$('goban').addClass('variations')
if (setting.get('view.show_console')) {
if (setting.get('view.show_leftsidebar')) {
document.body.addClass('leftsidebar')
setLeftSidebarWidth(setting.get('view.leftsidebar_width'))
}
Expand Down
2 changes: 1 addition & 1 deletion view/index.view.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function setShowLeftSidebar(show) {
win.setContentSize(size[0] + (show ? 1 : -1) * setting.get('view.leftsidebar_width'), size[1])

resizeBoard()
setting.set('view.show_console', show)
setting.set('view.show_leftsidebar', show)

// Update scrollbars
var view = $$('#console .gm-scroll-view')[0]
Expand Down

0 comments on commit b48315f

Please sign in to comment.