From d75cffd3a3550a85a18ced74a6bb28ca22b84f46 Mon Sep 17 00:00:00 2001 From: crschnick Date: Mon, 26 Feb 2024 13:35:26 +0000 Subject: [PATCH] Fix vault init order --- .../main/java/io/xpipe/app/storage/StandardStorage.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/io/xpipe/app/storage/StandardStorage.java b/app/src/main/java/io/xpipe/app/storage/StandardStorage.java index 339d30225..86d11ba9d 100644 --- a/app/src/main/java/io/xpipe/app/storage/StandardStorage.java +++ b/app/src/main/java/io/xpipe/app/storage/StandardStorage.java @@ -51,6 +51,9 @@ public class StandardStorage extends DataStorage { ErrorEvent.fromThrowable(e).terminal(true).build().handle(); } + this.gitStorageHandler.init(dir); + this.gitStorageHandler.beforeStorageLoad(); + try { initSystemInfo(); } catch (Exception e) { @@ -63,13 +66,9 @@ public class StandardStorage extends DataStorage { ErrorEvent.fromThrowable(e).terminal(true).build().handle(); } - this.gitStorageHandler.init(dir); - this.gitStorageHandler.beforeStorageLoad(); - var storesDir = getStoresDir(); var categoriesDir = getCategoriesDir(); var dataDir = getDataDir(); - try { FileUtils.forceMkdir(storesDir.toFile()); FileUtils.forceMkdir(categoriesDir.toFile());