From 8d017112441b96205b0c201d4c8afee0f891dbf9 Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 6 Feb 2020 12:00:12 +0100 Subject: [PATCH] Disable trim history is nothing to remove --- www/settings/inner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/settings/inner.js b/www/settings/inner.js index 8ec079b42..84c7f2294 100644 --- a/www/settings/inner.js +++ b/www/settings/inner.js @@ -1234,14 +1234,14 @@ define([ return; } channels = obj.channels; - size = UIElements.prettySize(Number(obj.size)); + size = Number(obj.size); })); }).nThen(function () { if (!size || size < 1024) { $(currentSize).html(Messages.trimHistory_noHistory || 'no history...'); // XXX return; } - $(currentSize).html(Messages._getKey('trimHistory_currentSize', [size])); + $(currentSize).html(Messages._getKey('trimHistory_currentSize', [UIElements.prettySize(size)])); $button.click(function () { //UI.confirm(Messages.trimHistory_confirm, function (yes) { UI.confirmButton(button, {