File indexing completed on 2024-12-29 05:05:33

0001 // MidButton got deprecated and doesn't really work anymore as a stringified enum value
0002 // for the middle button  Qt::MouseButton, we need to update our config to "MiddleButton"
0003 var plasmaConfig = ConfigFile("plasma-org.kde.plasma.desktop-appletsrc", "ActionPlugins");
0004 
0005 for (let i in plasmaConfig.groupList) {
0006     let subGroup = ConfigFile(plasmaConfig, plasmaConfig.groupList[i])
0007 
0008     for (let j in subGroup.keyList) {
0009         let key = subGroup.keyList[j];
0010         if (key.indexOf("MidButton") !== -1) {
0011             subGroup.writeEntry(key.replace("MidButton", "MiddleButton"), subGroup.readEntry(key));
0012             subGroup.deleteEntry(key);
0013         }
0014     }
0015 }