missing brackets added and colons removed

reviewable/pr11678/r4
SomeGuy 1 month ago committed by GitHub
parent c98a72ead3
commit 0c77fb80ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -297,15 +297,15 @@ function ReaderCoptListener:getAltStatusBarMenu()
local status = _(" ") local status = _(" ")
if self.battery == 1 then if self.battery == 1 then
if self.battery_percent == 1 then if self.battery_percent == 1 then
status = _(": percentage") status = _("(percentage)")
else else
status = _(": icon") status = _("(icon)")
end end
end end
return T(_("Battery status".. "%1"), status) return T(_("Battery status %1"), status)
end, end,
checked_func = function() checked_func = function()
return self.battery == 1 and self.battery_percent == 0 or self.battery_percent == 1 return self.battery == 1 and ( self.battery_percent == 0 or self.battery_percent == 1 )
end, end,
sub_item_table = { sub_item_table = {
{ {

Loading…
Cancel
Save