https://bugs.kde.org/show_bug.cgi?id=484541

            Bug ID: 484541
           Summary: Tons error about missing "cfg_*" properties
    Classification: Plasma
           Product: Plasma SDK
           Version: master
          Platform: Neon
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: plasmoidviewer
          Assignee: plasma-b...@kde.org
          Reporter: orblazer.minecraft+...@gmail.com
                CC: giorgos.tsiapalio...@kde.org, m...@ratijas.tk
  Target Milestone: ---

SUMMARY
Since Plama 6, the configuration page emits tons of error about missing `cfg_*`
properties during page loading

STEPS TO REPRODUCE
1. run widget with: `plasmoidviewer -a org.kde.plasma.kicker`
2. open settings

OBSERVED RESULT
Errors in terminal :
```
file:///usr/share/plasma/shells/org.kde.plasma.plasmoidviewershell/contents/configuration/ConfigurationAppletPage.qml:54:
Error: Cannot assign to non-existent property "cfg_objectName"
file:///usr/share/plasma/shells/org.kde.plasma.plasmoidviewershell/contents/configuration/ConfigurationAppletPage.qml:54:
Error: Cannot assign to non-existent property "cfg_iconDefault"
...
file:///usr/share/plasma/shells/org.kde.plasma.plasmoidviewershell/contents/configuration/ConfigurationAppletPage.qml:54:
Error: Cannot assign to non-existent property "cfg___33"
```

EXPECTED RESULT
No errors

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.0.2
(available in About System)
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
This issue could be partially fixed with my MR
https://invent.kde.org/plasma/plasma-sdk/-/merge_requests/121 because it's
include MR https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/1498.

BUT, this remove only non-config entries, the others errors (config entries)
still remaining, like :
```
file:///usr/share/plasma/plasmoids/org.kde.plasma.kicker/contents/ui/ConfigGeneral.qml:
Setting initial properties failed: ConfigGeneral does not have a property
called cfg_alignResultsToBottomDefault
```

The solution for that should be have some conditions heres
https://invent.kde.org/plasma/plasma-sdk/-/blob/c989f5fd99b46f38c07dd2970fa6a2f7046a1677/plasmoidviewer/qmlpackages/shell/contents/configuration/AppletConfiguration.qml#L125-127
(code from my MR) :
- exclude "...Default" (eg. `cfg_alignResultsToBottomDefault`) props
- exclude non-present props (the hardest due to seem impossible without loading
twice the page)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to