| Summary: | Ability to skip custom page based on the result of a command | ||
|---|---|---|---|
| Product: | [Applications] Welcome Center | Reporter: | Timothée Ravier <travier> |
| Component: | general | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | CONFIRMED --- | ||
| Severity: | wishlist | CC: | nate, olib141 |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Timothée Ravier
2024-07-31 13:50:45 UTC
I don't believe this can be done at present. Right now, Discover's page exposes whether Discover is installed:
let discover = _createPage("Discover.qml");
if (discover.application.exists) {
_pushPage(discover);
} else {
discover.destroy();
}
It should be possible for GenericPage to include a property that can be overridden for whether a page should be included. We can then use this internally and in distro pages. I'll investigate!
Basing this on the result of a command could be a problem. At present, I'd suggest using a Kirigami.PlaceholderMessage (anchors.centerIn; width: parent.width - Kirigami.Units.gridUnit * 2; visible: ...) to communicate that no action needs to be taken. I'd say this is probably preferable anyway, as users would know that even if currently installed, they will have the option to do so there if that were not the case. Given the proposed UX, I think showing a big blank "Yay, you have this random video codec, click Next now!" would be a bit silly. I think the request makes sense in general. For the moment, could you integrate the OpenH264 content into another existing custom page, so that you could hide it when not relevant on that page? |