feat: Made open config path button work

This commit is contained in:
Misa Liu 2024-03-05 00:17:20 +08:00
parent 9ff851ebb4
commit 1cc726bcdc
No known key found for this signature in database
GPG Key ID: F70B23D0A4FED791

View File

@ -211,6 +211,10 @@ async function onSettingWindowCreated(view: Element) {
})
});
doc.querySelector('#config-open-log-path').addEventListener('click', () => {
window.LiteLoader.api.openPath(window.LiteLoader.plugins['LLOneBot'].path.data);
})
// 开关
doc.querySelectorAll('setting-switch[data-config-key]').forEach((dom: HTMLElement) => {
dom.addEventListener('click', () => {