Switching power source retains tab, even if it does not exist

Bug #1927958 reported by Marcel Waldvogel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-power-manager (Ubuntu)
Triaged
Low
Unassigned

Bug Description

When switching from a power source (e.g., "Laptop battery") to another power source (e.g. "AC adapter"), where the latter does not have the tab which was selected in the former, then no information at all is displayed.

Ubuntu 21.04, gnome-power-manager 3.32.0-2

Actual behavior
===============

1. `gnome-power-statistics` starts with "AC adapter" selected left and "Details" tab being shown on the right
2. Click on "Laptop battery" left: Laptop battery "Details" tab is shown on the right
3. Click on "History" or "Statistics" tab: The appropriate information for "Laptop battery" is shown on the right. So far, so good.
4. Click on "AC adapter" left again: Now, *nothing* is shown on the right. This should not happen.

Expected behavior
=================
4. Click on "AC adapter": "Details" tab should be shown. (In general: *Any* tab should be shown, but here, "Details" is the only one available.)

This is probably a result from trying to fix https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/766876

Changed in gnome-power-manager (Ubuntu):
importance: Undecided → Low
Revision history for this message
Sebastien Bacher (seb128) wrote :
Changed in gnome-power-manager (Ubuntu):
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.