Merge branch 'main' of git.zander.im:Zander671/quick-text-bar

This commit is contained in:
Alexander Rosenberg 2022-11-19 16:16:57 -08:00
commit 1a1a58f66c
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -34,6 +34,12 @@ static void load_initial_device_states(GDBusConnection *dbus,
dbus, "org.bluez", path, "org.freedesktop.DBus.Properties", "Get", dbus, "org.bluez", path, "org.freedesktop.DBus.Properties", "Get",
g_variant_new_parsed("('org.bluez.Adapter1', 'Powered')"), g_variant_new_parsed("('org.bluez.Adapter1', 'Powered')"),
(GVariantType *)"(v)", G_DBUS_CALL_FLAGS_NONE, -1, NULL, &err); (GVariantType *)"(v)", G_DBUS_CALL_FLAGS_NONE, -1, NULL, &err);
if (err) {
qtb_log("checking bluetooth adapter power state failed\n-> %s", err->message);
g_error_free(err);
err = NULL;
qtb_die();
}
if (response) { if (response) {
GVariant *wrapper = g_variant_get_child_value(response, 0); GVariant *wrapper = g_variant_get_child_value(response, 0);
GVariant *value = g_variant_get_child_value(wrapper, 0); GVariant *value = g_variant_get_child_value(wrapper, 0);