modalDialog: Don't pass timestamp to popModal()
Just like in the pushModal() case, the parameter doesn't do anything anymore. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3195>
This commit is contained in:
parent
3574c5246a
commit
a17f4a6cb8
@ -217,7 +217,7 @@ export const ModalDialog = GObject.registerClass({
|
|||||||
// Drop modal status without closing the dialog; this makes the
|
// Drop modal status without closing the dialog; this makes the
|
||||||
// dialog insensitive as well, so it needs to be followed shortly
|
// dialog insensitive as well, so it needs to be followed shortly
|
||||||
// by either a close() or a pushModal()
|
// by either a close() or a pushModal()
|
||||||
popModal(timestamp) {
|
popModal() {
|
||||||
if (!this._hasModal)
|
if (!this._hasModal)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -226,7 +226,7 @@ export const ModalDialog = GObject.registerClass({
|
|||||||
this._savedKeyFocus = focus;
|
this._savedKeyFocus = focus;
|
||||||
else
|
else
|
||||||
this._savedKeyFocus = null;
|
this._savedKeyFocus = null;
|
||||||
Main.popModal(this._grab, timestamp);
|
Main.popModal(this._grab);
|
||||||
this._grab = null;
|
this._grab = null;
|
||||||
this._hasModal = false;
|
this._hasModal = false;
|
||||||
|
|
||||||
@ -272,14 +272,14 @@ export const ModalDialog = GObject.registerClass({
|
|||||||
// e.g., if a user clicked "Log Out" then the dialog should go away
|
// e.g., if a user clicked "Log Out" then the dialog should go away
|
||||||
// immediately, but the lightbox should remain until the logout is
|
// immediately, but the lightbox should remain until the logout is
|
||||||
// complete.
|
// complete.
|
||||||
_fadeOutDialog(timestamp) {
|
_fadeOutDialog() {
|
||||||
if (this.state === State.CLOSED || this.state === State.CLOSING)
|
if (this.state === State.CLOSED || this.state === State.CLOSING)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (this.state === State.FADED_OUT)
|
if (this.state === State.FADED_OUT)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
this.popModal(timestamp);
|
this.popModal();
|
||||||
this.dialogLayout.ease({
|
this.dialogLayout.ease({
|
||||||
opacity: 0,
|
opacity: 0,
|
||||||
duration: FADE_OUT_DIALOG_TIME,
|
duration: FADE_OUT_DIALOG_TIME,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user