From 9acb0665d8600b32ab8e2600acd0a5fa4e8bfbc8 Mon Sep 17 00:00:00 2001
From: Misa Liu <misaliu@misaliu.top>
Date: Mon, 4 Mar 2024 22:00:33 +0800
Subject: [PATCH] fix: Missing setting option

---
 src/renderer/index.ts | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/src/renderer/index.ts b/src/renderer/index.ts
index cf7543f..2329bce 100644
--- a/src/renderer/index.ts
+++ b/src/renderer/index.ts
@@ -82,11 +82,6 @@ async function onSettingWindowCreated(view: Element) {
                 '慎用,可能会导致自己跟自己聊个不停',
                 SettingSwitch('reportSelfMessage', config.reportSelfMessage),
             ),
-            SettingItem(
-                '写入日志',
-                `日志文件目录:${window.LiteLoader.plugins['LLOneBot'].path.data}`,
-                SettingButton('打开', 'config-open-log-path'),
-            ),
             SettingItem(
                 '自动删除收到的文件',
                 '在收到文件后的指定时间内删除该文件',
@@ -98,6 +93,16 @@ async function onSettingWindowCreated(view: Element) {
                 `<div class="q-input"><input class="q-input__inner" type="number" min="1" value="${config.autoDeleteFileSecond}" placeholder="${config.autoDeleteFileSecond}" /></div>`,
                 'config-auto-delete-file-second', config.autoDeleteFile
             ),
+            SettingItem(
+                '写入日志',
+                `将日志文件写入插件的数据文件夹`,
+                SettingSwitch('log', config.log),
+            ),
+            SettingItem(
+                '日志文件目录',
+                `${window.LiteLoader.plugins['LLOneBot'].path.data}`,
+                SettingButton('打开', 'config-open-log-path'),
+            ),
         ]),
         '</div>',
     ].join(''), "text/html");