Close KSplash when the desktops are visible
ClosedPublic

Authored by apol on May 30 2019, 12:00 AM.

Details

Summary

If the desktops are already visible, there's no much need to hold on the KSplash. Panels should be ellegantly displayed when they're ready.

As discussed in T10958.

Test Plan

Made sure that it gets emitted at the right time.
Timing-wise, my system takes about 1s to show the DesktopView and 2s to show the PanelView (I have 1 panel)

Diff Detail

Repository
R120 Plasma Workspace
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
apol created this revision.May 30 2019, 12:00 AM
Restricted Application added a project: Plasma. · View Herald TranscriptMay 30 2019, 12:00 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
apol requested review of this revision.May 30 2019, 12:00 AM

Whilst I love this patch, I think we may need another patch somewhere in the stack to make the desktops not announce they're done till they've actually loaded their wallpaper.

apol added a comment.May 30 2019, 8:02 PM

Whilst I love this patch, I think we may need another patch somewhere in the stack to make the desktops not announce they're done till they've actually loaded their wallpaper.

I was looking into this, this is something that it's not yet available at the very least. WallpaperInterface::loadFinished is called very early in the process, much earlier than the ui is ever ready.

broulik added a subscriber: broulik.EditedMay 30 2019, 10:20 PM

Also mind that we load the image asynchronously, so maybe we need a signal that a wallpaper plugin can emit to signal it's ready.
Perhaps have the QML define a signal loadingFinished and connect from c++ and only if it's present wait for it (for compat). The QML will then do onStatusChanged: if (status !== Image.Loading) root.loadingFinished()

davidedmundson accepted this revision.Jun 6 2019, 5:10 PM

I wrote a patch to delay uiReady till the wallpaper is loaded.

This revision is now accepted and ready to land.Jun 6 2019, 5:10 PM
This revision was automatically updated to reflect the committed changes.