diff options
author | obscuren <geffobscura@gmail.com> | 2014-06-15 06:02:41 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-06-15 06:02:41 +0800 |
commit | 7ab735eb02f92a7bfc67dff2515eadea18036844 (patch) | |
tree | 92b322aca0959e20ba6c002171cdf7a6c640942e /ethereal | |
parent | ef1b923b31dfda78bc8f3dce415721aa9518fe4b (diff) | |
download | go-tangerine-7ab735eb02f92a7bfc67dff2515eadea18036844.tar go-tangerine-7ab735eb02f92a7bfc67dff2515eadea18036844.tar.gz go-tangerine-7ab735eb02f92a7bfc67dff2515eadea18036844.tar.bz2 go-tangerine-7ab735eb02f92a7bfc67dff2515eadea18036844.tar.lz go-tangerine-7ab735eb02f92a7bfc67dff2515eadea18036844.tar.xz go-tangerine-7ab735eb02f92a7bfc67dff2515eadea18036844.tar.zst go-tangerine-7ab735eb02f92a7bfc67dff2515eadea18036844.zip |
Max 250 log
Diffstat (limited to 'ethereal')
-rw-r--r-- | ethereal/assets/qml/wallet.qml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ethereal/assets/qml/wallet.qml b/ethereal/assets/qml/wallet.qml index b98497aba..a7c03f6d1 100644 --- a/ethereal/assets/qml/wallet.qml +++ b/ethereal/assets/qml/wallet.qml @@ -319,7 +319,7 @@ ApplicationWindow { Slider { id: logLevelSlider - value: 2 + value: 1 anchors { right: parent.right top: parent.top @@ -685,6 +685,11 @@ ApplicationWindow { } function addLog(str) { + // Remove first item once we've reached max log items + if(logModel.count > 250) { + logModel.remove(0) + } + if(str.len != 0) { if(logView.flickableItem.atYEnd) { logModel.append({description: str}) @@ -693,6 +698,7 @@ ApplicationWindow { logModel.append({description: str}) } } + } function setPeers(text) { |