Bug 454579 - Location config page is always shown regardless of pluginName
Summary: Location config page is always shown regardless of pluginName
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Containment (other bugs)
Version First Reported In: 5.26.90
Platform: Other Linux
: LO minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-29 15:58 UTC by ratijas
Modified: 2025-10-17 19:16 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Plasma config - unloaded Location (48.45 KB, image/png)
2022-05-29 15:58 UTC, ratijas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ratijas 2022-05-29 15:58:59 UTC
Created attachment 149319 [details]
Plasma config - unloaded Location

SUMMARY

Location config page is always shown regardless of pluginName (which can be either "org.kde.plasma.folder" or "org.kde.desktopcontainment"). In case of "org.kde.desktopcontainment", it is not visible in a sidebar, but loaded by default as a page. Changed on the page, however, seem to have no effect on the applet instance, at least in Plasmoid Viewer.

There config is defined as follow:

```qml
ConfigModel {
    property bool isFolder: (plasmoid.pluginName === "org.kde.plasma.folder")

    ConfigCategory {
         name: i18n("Location")
         icon: "folder"
         source: "ConfigLocation.qml"
         visible: isFolder
    }
//...
```

So it seems like `visible` binding being set too late, when the page is already loaded, and changing it to false does not unload the page.

STEPS TO REPRODUCE
1. Run `plasmoidviewer -a org.kde.desktopcontainment`
2. Open applet configuration

OBSERVED RESULT
Location page is loaded and shown, but it is not present in the list.

EXPECTED RESULT
Consistently not showing a configuration page which is not supposed to be visible.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.25.80
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.4
Kernel Version: 5.18.0-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-6700HQ CPU @ 2.60GHz
Memory: 15.6 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 970M/PCIe/SSE2