Fix boolean negation
This commit is contained in:
parent
f868f51fcd
commit
cfa8625699
@ -589,7 +589,7 @@ GVariant *dbus_cb_dunst_Properties_Get(GDBusConnection *connection,
|
|||||||
struct dunst_status status = dunst_status_get();
|
struct dunst_status status = dunst_status_get();
|
||||||
|
|
||||||
if (STR_EQ(property_name, "paused")) {
|
if (STR_EQ(property_name, "paused")) {
|
||||||
return !g_variant_new_boolean(status.running);
|
return g_variant_new_boolean(!status.running);
|
||||||
} else {
|
} else {
|
||||||
LOG_W("Unknown property!\n");
|
LOG_W("Unknown property!\n");
|
||||||
*error = g_error_new(G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_PROPERTY, "Unknown property");
|
*error = g_error_new(G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_PROPERTY, "Unknown property");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user