[fix] Statistics settings reset to default when on save without change (#3188)

* Fix: #3186
This commit is contained in:
Robert
2017-09-14 22:31:25 +02:00
committed by Frans de Jonge
parent e5eb015f1b
commit 7c88bad189
2 changed files with 35 additions and 12 deletions

View File

@@ -605,16 +605,14 @@ function ReaderStatistics:updateSettings()
title = _("Statistics settings"),
fields = {
{
text = "",
text = self.page_min_read_sec,
description = T(_("Min seconds, default is %1"), DEFAULT_MIN_READ_SEC),
input_type = "number",
hint = T(_("Min seconds, default is %1. Current value: %2"),
DEFAULT_MIN_READ_SEC, self.page_min_read_sec),
},
{
text = "",
text = self.page_max_read_sec,
description = T(_("Max seconds, default is %1"), DEFAULT_MAX_READ_SEC),
input_type = "number",
hint = T(_("Max seconds, default is %1. Current value: %2"),
DEFAULT_MAX_READ_SEC, self.page_max_read_sec),
},
},
buttons = {