mirror of
https://github.com/Eugeny/tabby.git
synced 2024-11-28 05:36:31 +03:00
made progress detection optional - fixes #3472
This commit is contained in:
parent
864932d663
commit
e42bd11725
@ -330,7 +330,7 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
|
||||
}
|
||||
|
||||
const percentageMatch = /(^|[^\d])(\d+(\.\d+)?)%([^\d]|$)/.exec(data)
|
||||
if (!this.alternateScreenActive && percentageMatch) {
|
||||
if (!this.alternateScreenActive && percentageMatch && this.config.store.terminal.detectProgress) {
|
||||
const percentage = percentageMatch[3] ? parseFloat(percentageMatch[2]) : parseInt(percentageMatch[2])
|
||||
if (percentage > 0 && percentage <= 100) {
|
||||
this.setProgress(percentage)
|
||||
|
@ -74,6 +74,7 @@ export class TerminalConfigProvider extends ConfigProvider {
|
||||
wholeWord: false,
|
||||
caseSensitive: false,
|
||||
},
|
||||
detectProgress: true,
|
||||
},
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user