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()
|| !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);

View file

@ -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;