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 1
1
define ( [
2
+ "settings" ,
2
3
"views/panel"
3
- ] , function ( PanelOutlineView ) {
4
+ ] , function ( settings , PanelOutlineView ) {
4
5
var commands = codebox . require ( "core/commands/toolbar" ) ;
5
6
var app = codebox . require ( "core/app" ) ;
6
7
var panels = codebox . require ( "core/panels" ) ;
@@ -25,5 +26,5 @@ define([
25
26
} ) ) ;
26
27
27
28
// Open panel during startup
28
- panel . open ( ) ;
29
+ if ( settings . user . get ( "startup" ) ) panel . open ( ) ;
29
30
} ) ;
Original file line number Diff line number Diff line change @@ -6,12 +6,17 @@ define([], function() {
6
6
'namespace' : "outline" ,
7
7
'title' : "Outline" ,
8
8
'defaults' : {
9
- 'separator' : "."
9
+ 'separator' : "." ,
10
+ 'startup' : false
10
11
} ,
11
12
'fields' : {
12
13
'separator' : {
13
14
'label' : 'Tag Parts Separator' ,
14
15
'type' : "text"
16
+ } ,
17
+ 'startup' : {
18
+ 'label' : 'Show Outline Panel at Startup' ,
19
+ 'type' : "checkbox"
15
20
}
16
21
}
17
22
} ) ;
You can’t perform that action at this time.
0 commit comments