Skip to content
  • David Edmundson's avatar
    When swapping Wallpapers, save the config to file, not just to propertymap · a9f5ada7
    David Edmundson authored
    Summary:
    ContainmentConfigView has a special code path for wallpaper configs
    where, if you change wallpaper type, it will create a temporary config
    ConfigPropertyMap, then copy it over to the real config when the
    containment actually changes.
    
    ConfigPropertyMap does not call valueChanged() on insertion (See
    QQmlPropertyMap), and we only write the value into the actual
    KConfigSkeleton on valueChange.
    
    BUG: 375532
    
    Test Plan:
    Start plasma with image wallpaper
    Set to colour wallpaper and save colour
    Hit apply
    
    Close plasma
    Start plasma
    
    Before the correct colour wouldn't be loaded. Now it is.
    
    Reviewers: #plasma, mart
    
    Reviewed By: mart
    
    Subscribers: plasma-devel
    
    Tags: #plasma
    
    Differential Revision: https://phabricator.kde.org/D4285
    a9f5ada7