From 87f5cd97ab22b17a948eb9af1b49a0b1e777048d Mon Sep 17 00:00:00 2001 From: Keuin Date: Fri, 24 Apr 2020 08:48:13 +0800 Subject: Added /kb delete for deleting an backup (with auto-complete supported). --- .../com/keuin/kbackupfabric/util/BackupNameSuggestionProvider.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/com/keuin/kbackupfabric/util/BackupNameSuggestionProvider.java') diff --git a/src/main/java/com/keuin/kbackupfabric/util/BackupNameSuggestionProvider.java b/src/main/java/com/keuin/kbackupfabric/util/BackupNameSuggestionProvider.java index 08e12b2..7e87815 100644 --- a/src/main/java/com/keuin/kbackupfabric/util/BackupNameSuggestionProvider.java +++ b/src/main/java/com/keuin/kbackupfabric/util/BackupNameSuggestionProvider.java @@ -12,6 +12,7 @@ import java.util.Locale; import java.util.concurrent.CompletableFuture; public class BackupNameSuggestionProvider { + private static final List candidateCacheList = new ArrayList<>(); private static final Object syncSetDirectory = new Object(); private static final Object syncUpdate = new Object(); @@ -48,7 +49,7 @@ public class BackupNameSuggestionProvider { // candidateList.addAll(stringCollection); // } - public static SuggestionProvider getSuggestionProvider() { + public static SuggestionProvider getProvider() { return (context, builder) -> getCompletableFuture(builder); } -- cgit v1.2.3