mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
inhibitShorcutsDialog: Fix permission check
Each permission entry is an array of strings, so checking that against
the expected string itself will always fail.
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6107
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2548>
(cherry picked from commit b0befbbfbb)
This commit is contained in:
parent
2d75266882
commit
a2cd818c8c
1 changed files with 1 additions and 1 deletions
|
|
@ -143,7 +143,7 @@ var InhibitShortcutsDialog = GObject.registerClass({
|
|||
|
||||
if (permissions[appId] === undefined) // Not found
|
||||
this._dialog.open();
|
||||
else if (permissions[appId] === GRANTED)
|
||||
else if (permissions[appId][0] === GRANTED)
|
||||
this._emitResponse(DialogResponse.ALLOW);
|
||||
else
|
||||
this._emitResponse(DialogResponse.DENY);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue