mirror of
https://github.com/TermoraDev/termora.git
synced 2026-01-16 10:22:58 +08:00
feat: support Huawei OBS
This commit is contained in:
@@ -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 那么加到用户下
|
||||
|
||||
Reference in New Issue
Block a user