mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-19 07:09:14 +00:00
fix: When app logs are paused, on incoming queue overflow, the main buffer was cleaned up instead
This commit is contained in:
parent
b69e4ad7ff
commit
ef743302cd
|
@ -20,7 +20,7 @@ class ConsoleModel extends ChangeNotifier {
|
|||
if (paused) {
|
||||
_incomingQueue.add(newLog);
|
||||
if (_incomingQueue.length > incomingBufferBreakpoint) {
|
||||
logs.removeRange(0, _incomingQueue.length - logBufferLimit);
|
||||
_incomingQueue.removeRange(0, _incomingQueue.length - logBufferLimit);
|
||||
}
|
||||
} else {
|
||||
logs.add(newLog);
|
||||
|
|
Loading…
Reference in a new issue