power: Hide power button when chassis is handset

Just like tablets, handset power key is often handled differently
This commit is contained in:
Mohammed Sadiq 2020-01-24 17:53:32 +05:30 committed by Robert Ancell
parent 90e0774a19
commit 68c4023f06

View file

@ -2354,7 +2354,8 @@ add_suspend_and_power_off_section (CcPowerPanel *self)
} }
if (g_strcmp0 (self->chassis_type, "vm") == 0 || if (g_strcmp0 (self->chassis_type, "vm") == 0 ||
g_strcmp0 (self->chassis_type, "tablet") == 0) g_strcmp0 (self->chassis_type, "tablet") == 0 ||
g_strcmp0 (self->chassis_type, "handset") == 0)
return; return;
/* Power button row */ /* Power button row */