Center welcome window on focus

This commit is contained in:
mr. M
2025-02-21 12:29:21 +01:00
parent dee0016836
commit a97ff24035

View File

@@ -524,6 +524,7 @@
window.focus();
const appWin = window.docShell.treeOwner.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIAppWindow);
appWin.rollupAllPopups();
appWin.center(null, true, false);
},
{ once: true }
);