Fix git sync issues

This commit is contained in:
crschnick 2024-08-27 23:38:24 +00:00
parent c06e6032c9
commit 473fcfe843
2 changed files with 5 additions and 5 deletions

View file

@ -86,10 +86,10 @@ public class StoreCategoryComp extends SimpleComp {
if (!DataStorage.get().supportsSharing() if (!DataStorage.get().supportsSharing()
|| !category.getCategory().canShare()) { || !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(), category.getSync(),
hover); hover);

View file

@ -229,7 +229,7 @@ public abstract class DataStorage {
public abstract boolean supportsSharing(); public abstract boolean supportsSharing();
public boolean shouldShare(DataStoreCategory category) { public boolean shouldSync(DataStoreCategory category) {
if (!category.canShare()) { if (!category.canShare()) {
return false; return false;
} }
@ -246,8 +246,8 @@ public abstract class DataStorage {
return true; return true;
} }
public boolean shouldShare(DataStoreEntry entry) { public boolean shouldSync(DataStoreEntry entry) {
if (!shouldShare(DataStorage.get() if (!shouldSync(DataStorage.get()
.getStoreCategoryIfPresent(entry.getCategoryUuid()) .getStoreCategoryIfPresent(entry.getCategoryUuid())
.orElseThrow())) { .orElseThrow())) {
return false; return false;