unlockDialog: Stop passing timestamp to Main.pushModal()
Since the move to Clutter.grab() in commit f4cae72d17
, the
parameter doesn't do anything anymore.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3195>
This commit is contained in:

committed by
Marge Bot

parent
fbc7290bcf
commit
0432623fc8
@ -876,17 +876,14 @@ export const UnlockDialog = GObject.registerClass({
|
||||
this._authPrompt.finish(onComplete);
|
||||
}
|
||||
|
||||
open(timestamp) {
|
||||
open() {
|
||||
this.show();
|
||||
|
||||
if (this._isModal)
|
||||
return true;
|
||||
|
||||
let modalParams = {
|
||||
timestamp,
|
||||
actionMode: Shell.ActionMode.UNLOCK_SCREEN,
|
||||
};
|
||||
let grab = Main.pushModal(Main.uiGroup, modalParams);
|
||||
const grab = Main.pushModal(Main.uiGroup,
|
||||
{actionMode: Shell.ActionMode.UNLOCK_SCREEN});
|
||||
if (grab.get_seat_state() !== Clutter.GrabState.ALL) {
|
||||
Main.popModal(grab);
|
||||
return false;
|
||||
@ -902,9 +899,9 @@ export const UnlockDialog = GObject.registerClass({
|
||||
this._showPrompt();
|
||||
}
|
||||
|
||||
popModal(timestamp) {
|
||||
popModal() {
|
||||
if (this._isModal) {
|
||||
Main.popModal(this._grab, timestamp);
|
||||
Main.popModal(this._grab);
|
||||
this._grab = null;
|
||||
this._isModal = false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user