mirror of
https://github.com/decaf-dev/obsidian-vault-explorer.git
synced 2026-07-22 10:10:31 +00:00
fix: use PluginEvent
This commit is contained in:
parent
0a2fba7dbb
commit
82c1fea5df
1 changed files with 3 additions and 2 deletions
|
|
@ -7,6 +7,7 @@
|
|||
import { onMount } from "svelte";
|
||||
import Wrap from "src/svelte/shared/components/wrap.svelte";
|
||||
import EventManager from "src/event/event-manager";
|
||||
import { PluginEvent } from "src/event/types";
|
||||
|
||||
export let groups: TFilterGroup[] = [];
|
||||
|
||||
|
|
@ -29,12 +30,12 @@
|
|||
}
|
||||
|
||||
EventManager.getInstance().on(
|
||||
"filter-groups-wrapping-setting-change",
|
||||
PluginEvent.FILTER_GROUPS_WRAPPING_SETTING_CHANGE,
|
||||
handleFilterGroupsWrappingSettingChange,
|
||||
);
|
||||
return () => {
|
||||
EventManager.getInstance().off(
|
||||
"filter-groups-wrapping-setting-change",
|
||||
PluginEvent.FILTER_GROUPS_WRAPPING_SETTING_CHANGE,
|
||||
handleFilterGroupsWrappingSettingChange,
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue