mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-10 19:03:12 +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) {
|
if (paused) {
|
||||||
_incomingQueue.add(newLog);
|
_incomingQueue.add(newLog);
|
||||||
if (_incomingQueue.length > incomingBufferBreakpoint) {
|
if (_incomingQueue.length > incomingBufferBreakpoint) {
|
||||||
logs.removeRange(0, _incomingQueue.length - logBufferLimit);
|
_incomingQueue.removeRange(0, _incomingQueue.length - logBufferLimit);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
logs.add(newLog);
|
logs.add(newLog);
|
||||||
|
|
Loading…
Reference in a new issue