Skip to content

Commit 7c17791

Browse files
committed
feat: ! redraw search results after global query is edited
Related to #2684
1 parent 6e297b9 commit 7c17791

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)