Skip to content

Commit dab4c5a

Browse files
authored
Merge pull request #3596 from ilandikov/feat-auto-update-global-query
feat: redraw search results after global query is edited
2 parents 6e297b9 + 7c17791 commit dab4c5a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Config/SettingsTab.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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
);

0 commit comments

Comments
 (0)