ide: fix toggle sidebar state problem [fixes #82710824]