mirror of
https://github.com/TermoraDev/termora.git
synced 2026-01-15 18:02:58 +08:00
chore: folder count (#542)
This commit is contained in:
@@ -49,7 +49,7 @@ class NewHostTree : SimpleTree() {
|
||||
private val properties get() = Database.getDatabase().properties
|
||||
private val owner get() = SwingUtilities.getWindowAncestor(this)
|
||||
private val openHostAction get() = ActionManager.getInstance().getAction(OpenHostAction.OPEN_HOST)
|
||||
private val sftpAction get() = ActionManager.getInstance().getAction(Actions.SFTP)
|
||||
private val sftpAction get() = ActionManager.getInstance().getAction(app.termora.Actions.SFTP)
|
||||
private var isShowMoreInfo
|
||||
get() = properties.getString("HostTree.showMoreInfo", "false").toBoolean()
|
||||
set(value) = properties.putString("HostTree.showMoreInfo", value.toString())
|
||||
@@ -117,7 +117,7 @@ class NewHostTree : SimpleTree() {
|
||||
} else if (host.protocol == Protocol.Serial) {
|
||||
text = "<html>${host.name} ${fontTag.apply(host.options.serialComm.port)}</html>"
|
||||
} else if (host.protocol == Protocol.Folder) {
|
||||
text = "<html>${host.name}${fontTag.apply(" (${node.childCount})")}</html>"
|
||||
text = "<html>${host.name}${fontTag.apply(" (${node.getAllChildren().size})")}</html>"
|
||||
}
|
||||
// @formatter:on
|
||||
}
|
||||
@@ -812,7 +812,7 @@ class NewHostTree : SimpleTree() {
|
||||
var group = bookmarkGroups.find { it.bookmarkIds.contains(id) }
|
||||
while (group != null && group.id != "default") {
|
||||
folderNames.addFirst(group.title)
|
||||
group = bookmarkGroups.find { it.bookmarkGroupIds.contains(group.id) }
|
||||
group = bookmarkGroups.find { it.bookmarkGroupIds.contains(group?.id ?: StringUtils.EMPTY) }
|
||||
}
|
||||
|
||||
printer.printRecord(
|
||||
|
||||
Reference in New Issue
Block a user