mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[fix] Statistics settings reset to default when on save without change (#3188)
* Fix: #3186
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user