mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +00:00
Fix some root categories being deletable
This commit is contained in:
parent
5274d58c36
commit
aa76ce1a94
1 changed files with 5 additions and 1 deletions
|
@ -415,7 +415,11 @@ public abstract class DataStorage {
|
|||
}
|
||||
|
||||
public void deleteStoreCategory(@NonNull DataStoreCategory cat) {
|
||||
if (cat.getUuid().equals(DEFAULT_CATEGORY_UUID) || cat.getUuid().equals(ALL_CONNECTIONS_CATEGORY_UUID)) {
|
||||
if (cat.getParentCategory() == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (cat.getUuid().equals(DEFAULT_CATEGORY_UUID) || cat.getUuid().equals(PREDEFINED_SCRIPTS_CATEGORY_UUID)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue