File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 11define ( [
2+ "settings" ,
23 "views/panel"
3- ] , function ( PanelOutlineView ) {
4+ ] , function ( settings , PanelOutlineView ) {
45 var commands = codebox . require ( "core/commands/toolbar" ) ;
56 var app = codebox . require ( "core/app" ) ;
67 var panels = codebox . require ( "core/panels" ) ;
@@ -25,5 +26,5 @@ define([
2526 } ) ) ;
2627
2728 // Open panel during startup
28- panel . open ( ) ;
29+ if ( settings . user . get ( "startup" ) ) panel . open ( ) ;
2930} ) ;
Original file line number Diff line number Diff line change @@ -6,12 +6,17 @@ define([], function() {
66 'namespace' : "outline" ,
77 'title' : "Outline" ,
88 'defaults' : {
9- 'separator' : "."
9+ 'separator' : "." ,
10+ 'startup' : false
1011 } ,
1112 'fields' : {
1213 'separator' : {
1314 'label' : 'Tag Parts Separator' ,
1415 'type' : "text"
16+ } ,
17+ 'startup' : {
18+ 'label' : 'Show Outline Panel at Startup' ,
19+ 'type' : "checkbox"
1520 }
1621 }
1722 } ) ;
You can’t perform that action at this time.
0 commit comments