client: accounts: Do not fallback to previous id

This makes valac locked on build
This commit is contained in:
Cédric Bellegarde 2022-07-05 23:19:14 +02:00
parent a405a55fb4
commit 51a82881b5

View file

@ -856,27 +856,15 @@ public class Accounts.Manager : GLib.Object {
// This method was based on the implementation from:
// https://gitlab.gnome.org/GNOME/gnome-calendar/blob/master/src/gcal-source-dialog.c,
// Courtesy Georges Basile Stavracas Neto <georges.stavracas@gmail.com>
try {
GLib.DBusProxy settings = yield new GLib.DBusProxy.for_bus(
GLib.BusType.SESSION,
GLib.DBusProxyFlags.NONE,
null,
"org.gnome.Settings",
"/org/gnome/Settings",
"org.gtk.Actions",
cancellable
);
} catch (GLib.Error) {
GLib.DBusProxy settings = yield new GLib.DBusProxy.for_bus(
GLib.BusType.SESSION,
GLib.DBusProxyFlags.NONE,
null,
"org.gnome.ControlCenter",
"/org/gnome/ControlCenter",
"org.gtk.Actions",
cancellable
);
}
GLib.DBusProxy settings = yield new GLib.DBusProxy.for_bus(
GLib.BusType.SESSION,
GLib.DBusProxyFlags.NONE,
null,
"org.gnome.Settings",
"/org/gnome/Settings",
"org.gtk.Actions",
cancellable
);
// @s "launch-panel"
// @av [<@(sav) ("online-accounts", [<@s "add">, <@s "google">])>]