mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
modalDialog: Remove timestamp parameter from close() invocations
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3253>
This commit is contained in:
parent
72223977c2
commit
d1d43a871d
1 changed files with 4 additions and 4 deletions
|
|
@ -145,14 +145,14 @@ class NetworkSecretDialog extends ModalDialog.ModalDialog {
|
||||||
|
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this._agent.respond(this._requestId, Shell.NetworkAgentResponse.CONFIRMED);
|
this._agent.respond(this._requestId, Shell.NetworkAgentResponse.CONFIRMED);
|
||||||
this.close(global.get_current_time());
|
this.close();
|
||||||
}
|
}
|
||||||
// do nothing if not valid
|
// do nothing if not valid
|
||||||
}
|
}
|
||||||
|
|
||||||
cancel() {
|
cancel() {
|
||||||
this._agent.respond(this._requestId, Shell.NetworkAgentResponse.USER_CANCELED);
|
this._agent.respond(this._requestId, Shell.NetworkAgentResponse.USER_CANCELED);
|
||||||
this.close(global.get_current_time());
|
this.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
_validateWpaPsk(secret) {
|
_validateWpaPsk(secret) {
|
||||||
|
|
@ -495,7 +495,7 @@ class VPNRequestHandler extends Signals.EventEmitter {
|
||||||
this._agent.respond(this._requestId, Shell.NetworkAgentResponse.USER_CANCELED);
|
this._agent.respond(this._requestId, Shell.NetworkAgentResponse.USER_CANCELED);
|
||||||
|
|
||||||
if (this._newStylePlugin && this._shellDialog) {
|
if (this._newStylePlugin && this._shellDialog) {
|
||||||
this._shellDialog.close(global.get_current_time());
|
this._shellDialog.close();
|
||||||
this._shellDialog.destroy();
|
this._shellDialog.destroy();
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
|
|
@ -823,7 +823,7 @@ class NetworkAgent {
|
||||||
|
|
||||||
_cancelRequest(agent, requestId) {
|
_cancelRequest(agent, requestId) {
|
||||||
if (this._dialogs[requestId]) {
|
if (this._dialogs[requestId]) {
|
||||||
this._dialogs[requestId].close(global.get_current_time());
|
this._dialogs[requestId].close();
|
||||||
this._dialogs[requestId].destroy();
|
this._dialogs[requestId].destroy();
|
||||||
delete this._dialogs[requestId];
|
delete this._dialogs[requestId];
|
||||||
} else if (this._vpnRequests[requestId]) {
|
} else if (this._vpnRequests[requestId]) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue