cleanup SetFormattedText( -> SetText(format(

This commit is contained in:
Crum
2018-06-11 22:55:08 -05:00
parent bec12d0f0d
commit cce774b837
5 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ function D:OnCommReceived(prefix, msg, dist, sender)
OnAccept = function()
self.statusBar:SetMinMaxValues(0, length)
self.statusBar:SetValue(0)
self.statusBar.text:SetFormattedText(L["Data From: %s"], sender)
self.statusBar.text:SetText(format(L["Data From: %s"], sender))
E:StaticPopupSpecial_Show(self.statusBar)
self:SendCommMessage(REPLY_PREFIX, profile..":YES", dist, sender)
end,
+1 -1
View File
@@ -122,7 +122,7 @@ local function SetPage(PageNum, PrevPage)
end
f.Pages[f.CurrentPage]()
f.Status.text:SetFormattedText("%d / %d", f.CurrentPage, f.MaxPage)
f.Status.text:SetText(format("%d / %d", f.CurrentPage, f.MaxPage))
if f.StepTitles then
for i = 1, getn(f.side.Lines) do
local b = f.side.Lines[i]