Do not hide panel edit mode when add widgets dialog is closed
If you:
-
Right click on the panel and click Add widgets
-
Click on the panel to enter panel edit mode
Then your click would enter panel edit mode, but the Add widgets sidebar would send another "configure" event to the panel, which would then close panel edit mode, which would close panel edit mode entirely. We make sure that closing the Add widgets sidebar will never also close the panel edit mode.