Only open panel settings when closing widget sidebar if manually closed
Otherwise, other ways of closing the sidebar (e.g. pressing the screenshot button) will also pop back to the panel settings.
Note: "1" is a placeholder for the Panel type, since it's currently not exposed to QML. That will be changed before this MR is merged.