feat: support Huawei OBS

This commit is contained in:
hstyi
2025-06-27 15:42:00 +08:00
committed by GitHub
parent f28e785301
commit 54116a4bf5
15 changed files with 625 additions and 70 deletions

View File

@@ -18,7 +18,7 @@ class NewHostAction : AnAction() {
val tree = evt.getData(DataProviders.Welcome.HostTree) ?: return
var lastNode = (tree.lastSelectedPathComponent ?: tree.model.root) as? HostTreeNode ?: return
if (lastNode.host.isFolder.not()) {
lastNode = lastNode.parent ?: return
lastNode = lastNode.parent ?: tree.simpleTreeModel.root
}
// Root 不可以添加,如果是 Root 那么加到用户下