mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FEATURE] Ограничение числа символов в отладочном окне
This commit is contained in:
parent
cd490a0868
commit
7704e46996
1 changed files with 6 additions and 0 deletions
|
@ -37,6 +37,12 @@ var debug = {
|
|||
},
|
||||
|
||||
append: function(text) {
|
||||
LogHelper.debug(debug.output.getText().length());
|
||||
//Experimental Feature
|
||||
if(debug.output.getText().length() > 32000 /* Max length */)
|
||||
{
|
||||
debug.output.deleteText(0, text.length());
|
||||
}
|
||||
debug.output.appendText(text);
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue