modalDialog: Remove onPrimary parameter

It was added in commit 48fb16b570 for the lock screen, but that
hasn't been based on ModalDialog for a long time.

It doesn't appear that anything else ever used the parameter,
so just remove it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3195>
This commit is contained in:
Florian Müllner 2024-02-17 00:20:46 +01:00 committed by Marge Bot
parent a17f4a6cb8
commit 0ae285cc82

View File

@ -141,11 +141,8 @@ export const ModalDialog = GObject.registerClass({
return this.dialogLayout.addButton(buttonInfo);
}
_fadeOpen(onPrimary) {
if (onPrimary)
this._monitorConstraint.primary = true;
else
this._monitorConstraint.index = global.display.get_current_monitor();
_fadeOpen() {
this._monitorConstraint.index = global.display.get_current_monitor();
this._setState(State.OPENING);
@ -174,14 +171,14 @@ export const ModalDialog = GObject.registerClass({
() => (this._initialKeyFocus = null), this);
}
open(timestamp, onPrimary) {
open(_timestamp) {
if (this.state === State.OPENED || this.state === State.OPENING)
return true;
if (!this.pushModal())
return false;
this._fadeOpen(onPrimary);
this._fadeOpen();
return true;
}