mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
shellDBus: Actually make ScreenTransitionAsync async
We called such function async but we didn't awaited for the checkInvocation result in the proper way. So on failure the shell would report an unhandled promise rejection. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2258>
This commit is contained in:
parent
ef2136877f
commit
8ba7f0f4a9
1 changed files with 2 additions and 2 deletions
|
|
@ -253,9 +253,9 @@ var GnomeShell = class {
|
|||
invocation.return_value(GLib.Variant.new('(b)', [ungrabSucceeded]));
|
||||
}
|
||||
|
||||
ScreenTransitionAsync(params, invocation) {
|
||||
async ScreenTransitionAsync(params, invocation) {
|
||||
try {
|
||||
this._senderChecker.checkInvocation(invocation);
|
||||
await this._senderChecker.checkInvocation(invocation);
|
||||
} catch (e) {
|
||||
invocation.return_gerror(e);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue