shellDBus: Return error from ReloadExtension
The method has been deprecated because it generally doesn't (and can't) work. Clarify that by returning an error instead of apparently doing nothing. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2510
This commit is contained in:
parent
867587ef4c
commit
f3fcc4adb7
@ -329,12 +329,11 @@ var GnomeShellExtensions = class {
|
|||||||
(conn, res) => conn.call_finish(res));
|
(conn, res) => conn.call_finish(res));
|
||||||
}
|
}
|
||||||
|
|
||||||
ReloadExtension(uuid) {
|
ReloadExtensionAsync(params, invocation) {
|
||||||
let extension = Main.extensionManager.lookup(uuid);
|
invocation.return_error_literal(
|
||||||
if (!extension)
|
Gio.DBusError,
|
||||||
return;
|
Gio.DBusError.NOT_SUPPORTED,
|
||||||
|
'ReloadExtension is deprecated and does not work');
|
||||||
Main.extensionManager.reloadExtension(extension);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CheckForUpdates() {
|
CheckForUpdates() {
|
||||||
|
Loading…
Reference in New Issue
Block a user