Hi,
Thanks & well done. Your patch fixes the pb.
Note that meanwhile, I managed to reproduce the issue on my side. From the "music" tab, with the right sidebar set as hidden, open the "configure layout" button and then go to "playing tracks" > " Customize panel" > "save" button > deadlock. The pb did not appear with the right sidebar visible.