Fixes a refactoring regression from 84f1cb1c1.
There's an unrelated regression where the closing of a subdialog
of the root window by mousing to the favorites sidebar will also
cause the plasmoid to close. This will be addressed soon in a
seperate patch.
BUG: 388669