File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -34,12 +34,14 @@ export class SettingsTab extends PluginSettingTab {
3434
3535 private readonly plugin : TasksPlugin ;
3636 private readonly presetsSettingsUI ;
37+ private readonly events : TasksEvents ;
3738
3839 constructor ( { plugin, events } : { plugin : TasksPlugin ; events : TasksEvents } ) {
3940 super ( plugin . app , plugin ) ;
4041
4142 this . plugin = plugin ;
4243 this . presetsSettingsUI = new PresetsSettingsUI ( plugin , events ) ;
44+ this . events = events ;
4345 }
4446
4547 private static createFragmentWithHTML = ( html : string ) =>
@@ -152,6 +154,8 @@ export class SettingsTab extends PluginSettingTab {
152154 updateSettings ( { globalQuery : value } ) ;
153155 GlobalQuery . getInstance ( ) . set ( value ) ;
154156 await this . plugin . saveSettings ( ) ;
157+
158+ this . events . triggerReloadOpenSearchResults ( ) ;
155159 } ) ;
156160 } ) ,
157161 ) ;
You can’t perform that action at this time.
0 commit comments