mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 15:10:23 +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()
|
||||
|| !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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue