From bf9b25411dcadbf737d3cb148a8464c3479025ca Mon Sep 17 00:00:00 2001 From: DancingSnow <1121149616@qq.com> Date: Sun, 1 Dec 2024 00:31:57 +0800 Subject: [PATCH] fix(config): add `session.lock` to ignoreFiles by default --- .../quickbackupmulti/config/QuickBackupMultiConfig.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/github/skydynamic/quickbackupmulti/config/QuickBackupMultiConfig.java b/src/main/java/io/github/skydynamic/quickbackupmulti/config/QuickBackupMultiConfig.java index 70d6eae..c3e3e1f 100644 --- a/src/main/java/io/github/skydynamic/quickbackupmulti/config/QuickBackupMultiConfig.java +++ b/src/main/java/io/github/skydynamic/quickbackupmulti/config/QuickBackupMultiConfig.java @@ -66,7 +66,9 @@ public boolean isCheckUpdate() { } public ArrayList getIgnoredFiles() { - return config.ignoredFiles; + ArrayList ignoredFiles = new ArrayList<>(config.ignoredFiles); + ignoredFiles.add("session.lock"); + return ignoredFiles; }