@@ -92,11 +92,12 @@ class HeaderDisplayTextSettingTab extends PluginSettingTab {
92
92
containerEl . createEl ( 'h2' , { text : 'Link display text' } )
93
93
new Setting ( containerEl )
94
94
. setName ( 'Include note name' )
95
- . setName ( 'Include the title of the note in the display text.' )
95
+ . setDesc ( 'Include the title of the note in the display text.' )
96
96
. addDropdown ( dropdown => {
97
97
dropdown . addOption ( 'headersOnly' , 'Don\'t include note name' ) ;
98
98
dropdown . addOption ( 'noteNameFirst' , 'Note name and then heading(s)' ) ;
99
99
dropdown . addOption ( 'noteNameLast' , 'Heading(s) and then note name' ) ;
100
+ dropdown . setValue ( this . plugin . settings . includeNoteName ) ;
100
101
dropdown . onChange ( value => {
101
102
this . plugin . settings . includeNoteName = value ;
102
103
this . plugin . saveSettings ( ) ;
@@ -109,6 +110,7 @@ class HeaderDisplayTextSettingTab extends PluginSettingTab {
109
110
dropdown . addOption ( 'allHeaders' , 'All linked headings' ) ;
110
111
dropdown . addOption ( 'lastHeader' , 'Last heading only' ) ;
111
112
dropdown . addOption ( 'firstHeader' , 'First heading only' ) ;
113
+ dropdown . setValue ( this . plugin . settings . whichHeadings ) ;
112
114
dropdown . onChange ( value => {
113
115
this . plugin . settings . whichHeadings = value ;
114
116
this . plugin . saveSettings ( ) ;
0 commit comments