[gnome-control-center] power: Hide power button when chassis is handset
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] power: Hide power button when chassis is handset
- Date: Mon, 27 Jan 2020 21:32:34 +0000 (UTC)
commit 68c4023f066240b8e54ca91d086830484973a534
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Fri Jan 24 17:53:32 2020 +0530
power: Hide power button when chassis is handset
Just like tablets, handset power key is often handled differently
panels/power/cc-power-panel.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/panels/power/cc-power-panel.c b/panels/power/cc-power-panel.c
index 0ac6deb08..843eefe20 100644
--- a/panels/power/cc-power-panel.c
+++ b/panels/power/cc-power-panel.c
@@ -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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]