mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-08 12:28:00 +02:00
linux: Fix incorrect check for logind sleep methods
A simple reversed check...
This commit is contained in:
parent
5f830e74a7
commit
a7870229ee
1 changed files with 1 additions and 1 deletions
|
|
@ -360,7 +360,7 @@ check_action_result (GVariant *result)
|
|||
const char *s;
|
||||
|
||||
g_variant_get (result, "(s)", &s);
|
||||
if (g_strcmp0 (s, "yes") != 0)
|
||||
if (g_strcmp0 (s, "yes") == 0)
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue