ScreenSaverWidget: Simplify the setDirty call

No need for a closure, there's no dimen involved.
reviewable/pr11044/r7
NiLuJe 3 months ago
parent 39744d7642
commit a8a944cbaf

@ -87,9 +87,7 @@ function ScreenSaverWidget:onCloseWidget()
end
-- Make it full-screen (self.main_frame.dimen might be in a different orientation, and it's already full-screen anyway...)
UIManager:setDirty(nil, function()
return "full"
end)
UIManager:setDirty(nil, "full")
-- Will come after the Resume event, iff screensaver_delay is set.
-- Comes *before* it otherwise.

Loading…
Cancel
Save