optionsutil: Simplify the public formatFlexSize wrapper
Pull the dimension_units from in there, instead of asking callers to do that.
This commit is contained in:
1 parent
3cbd75b385
commit
e887be693f
3 files changed
+25
-19
No files matched your search
@@ -1094,7 +1094,7 @@ end
|
||||
|
||||
function ReaderView:onPageGapUpdate(page_gap)
|
||||
self.page_gap.height = Screen:scaleBySize(page_gap)
|
||||
Notification:notify(T(_("Page gap set to %1."), optionsutil.formatFlexSize(page_gap, G_reader_settings:readSetting("dimension_units"))))
|
||||
Notification:notify(T(_("Page gap set to %1."), optionsutil.formatFlexSize(page_gap)))
|
||||
return true
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user