Ensure that the pgAdmin server should not be closed if the user clicks on the Cancel button of the 'Leave site' message box.

This commit is contained in:
Akshay Joshi 2021-02-05 14:41:23 +05:30
parent 85b40ee4f0
commit 3a50c17110

View File

@ -204,7 +204,7 @@ function launchPgAdminWindow() {
// Set pgAdmin4 Windows Object
misc.setPgAdminWindowObject(pgadminWindow);
pgadminWindow.on('close', function() {
pgadminWindow.on('closed', function() {
misc.cleanupAndQuitApp();
});
@ -295,6 +295,6 @@ splashWindow.on('loaded', function() {
}
});
splashWindow.on('close', function() {
splashWindow.on('closed', function() {
misc.cleanupAndQuitApp();
});