mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 00:50:31 +00:00
Fix git sync issues
This commit is contained in:
parent
c06e6032c9
commit
473fcfe843
2 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue