mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
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:
@@ -204,7 +204,7 @@ function launchPgAdminWindow() {
|
|||||||
// Set pgAdmin4 Windows Object
|
// Set pgAdmin4 Windows Object
|
||||||
misc.setPgAdminWindowObject(pgadminWindow);
|
misc.setPgAdminWindowObject(pgadminWindow);
|
||||||
|
|
||||||
pgadminWindow.on('close', function() {
|
pgadminWindow.on('closed', function() {
|
||||||
misc.cleanupAndQuitApp();
|
misc.cleanupAndQuitApp();
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -295,6 +295,6 @@ splashWindow.on('loaded', function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
splashWindow.on('close', function() {
|
splashWindow.on('closed', function() {
|
||||||
misc.cleanupAndQuitApp();
|
misc.cleanupAndQuitApp();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user