ScreenSaverWidget: Simplify the setDirty call

No need for a closure, there's no dimen involved.
This commit is contained in:
NiLuJe
2024-01-20 20:20:35 +01:00
parent 39744d7642
commit a8a944cbaf

View File

@@ -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.