mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
shellDBus: Properly return from D-Bus methods
When implementing a D-Bus method synchronously, regular JS methods are used. That is, whatever the method returns is passed as return value to the method invocation. However for asynchronous implementations, we need to explicitly return a value to the invocation, otherwise the caller will wait until it times out eventually. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1891>
This commit is contained in:
parent
6813e246cd
commit
158920924d
1 changed files with 2 additions and 0 deletions
|
|
@ -217,11 +217,13 @@ var GnomeShell = class {
|
|||
let sender = invocation.get_sender();
|
||||
let [dict] = params;
|
||||
Main.osdMonitorLabeler.show(sender, dict);
|
||||
invocation.return_value(null);
|
||||
}
|
||||
|
||||
HideMonitorLabelsAsync(params, invocation) {
|
||||
let sender = invocation.get_sender();
|
||||
Main.osdMonitorLabeler.hide(sender);
|
||||
invocation.return_value(null);
|
||||
}
|
||||
|
||||
_checkOverviewVisibleChanged() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue