Display disable toggle is visible when only one usable display is connected
When only a single usable display is connected, the UI correctly hides the remaining unusable display(s) and hides the monitor arrangement widget. However, the enabled/disabled toggle button for the last usable display remains visible even though it can not be used because the last usable display can not be disabled. When this happens, the zero-monitor configuration is correctly prevented and a warning message is printed to the console:
(gnome-control-center:320689): display-cc-panel-WARNING **: 04:39:13.347: Config not applicable: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Monitors config incomplete
An example of a single unusable and single usable display is a closed laptop lid and a single external monitor.
Steps to reproduce:
- Open GNOME Settings
- Navigate to Displays
- Connect a single external monitor to a laptop and close the laptop's lid
- See that there is an enable/disable toggle button next to the only usable display
Edited by Timotej Šulík