diff options
author | Florrie <towerofnix@gmail.com> | 2020-07-17 19:08:09 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-05-16 19:10:20 -0300 |
commit | 467c896ed21a8e0eaf05ffff2fd764d9a6fbb247 (patch) | |
tree | 198388e214e5571747de60347e0a8c94c40dde88 | |
parent | f2f7f781edac78303e1b536f5da9977f9f30c56a (diff) |
only show log pane once first message is displayed
-rw-r--r-- | ui.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ui.js b/ui.js index df02edf..12898f2 100644 --- a/ui.js +++ b/ui.js @@ -244,6 +244,12 @@ export default class AppElement extends FocusElement { this.log = new Log() this.logPane.addChild(this.log) + this.logPane.visible = false + + this.log.on('log-message', () => { + this.logPane.visible = true + this.fixLayout() + }) if (!this.config.showTabberPane) { this.tabberPane.visible = false @@ -1728,7 +1734,7 @@ export default class AppElement extends FocusElement { this.logPane.w = leftWidth this.logPane.h = 6 this.log.fillParent() - this.log.fixLayout() + this.log.fixAllLayout() } if (this.tabberPane.visible) { @@ -5538,6 +5544,7 @@ class Log extends ListScrollForm { this.addInput(logMessage) this.fixLayout() this.scrollToEnd() + this.emit('log-message', logMessage) return logMessage } } |