power: Hide power button when chassis is handset
Just like tablets, handset power key is often handled differently
This commit is contained in:
parent
90e0774a19
commit
68c4023f06
1 changed files with 2 additions and 1 deletions
|
@ -2354,7 +2354,8 @@ add_suspend_and_power_off_section (CcPowerPanel *self)
|
|||
}
|
||||
|
||||
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;
|
||||
|
||||
/* Power button row */
|
||||
|
|
Loading…
Add table
Reference in a new issue