From 473fcfe8439940e698eb97b3cfbad4f3ede05ad4 Mon Sep 17 00:00:00 2001 From: crschnick Date: Tue, 27 Aug 2024 23:38:24 +0000 Subject: [PATCH] Fix git sync issues --- .../java/io/xpipe/app/fxcomps/impl/StoreCategoryComp.java | 4 ++-- app/src/main/java/io/xpipe/app/storage/DataStorage.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/io/xpipe/app/fxcomps/impl/StoreCategoryComp.java b/app/src/main/java/io/xpipe/app/fxcomps/impl/StoreCategoryComp.java index 3f92aae3a..af44f8f4c 100644 --- a/app/src/main/java/io/xpipe/app/fxcomps/impl/StoreCategoryComp.java +++ b/app/src/main/java/io/xpipe/app/fxcomps/impl/StoreCategoryComp.java @@ -86,10 +86,10 @@ public class StoreCategoryComp extends SimpleComp { if (!DataStorage.get().supportsSharing() || !category.getCategory().canShare()) { - return "mdi2a-account-lock"; + return "mdi2g-git"; } - return category.getSync().getValue() ? "mdi2g-git" : "mdi2a-account-cancel"; + return category.getSync().getValue() ? "mdi2g-git" : "mdi2c-cancel"; }, category.getSync(), hover); diff --git a/app/src/main/java/io/xpipe/app/storage/DataStorage.java b/app/src/main/java/io/xpipe/app/storage/DataStorage.java index b3b45f1da..b7fd55379 100644 --- a/app/src/main/java/io/xpipe/app/storage/DataStorage.java +++ b/app/src/main/java/io/xpipe/app/storage/DataStorage.java @@ -229,7 +229,7 @@ public abstract class DataStorage { public abstract boolean supportsSharing(); - public boolean shouldShare(DataStoreCategory category) { + public boolean shouldSync(DataStoreCategory category) { if (!category.canShare()) { return false; } @@ -246,8 +246,8 @@ public abstract class DataStorage { return true; } - public boolean shouldShare(DataStoreEntry entry) { - if (!shouldShare(DataStorage.get() + public boolean shouldSync(DataStoreEntry entry) { + if (!shouldSync(DataStorage.get() .getStoreCategoryIfPresent(entry.getCategoryUuid()) .orElseThrow())) { return false;