mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Disable NW.js dev tools shortcut on Mac as it may crash the app. #6183
This commit is contained in:
@@ -43,6 +43,11 @@ if (fs.existsSync('dev_config.json')) {
|
||||
// This functions is used to start the pgAdmin4 server by spawning a
|
||||
// separate process.
|
||||
function startDesktopMode() {
|
||||
// Disable dev tools shortcut
|
||||
if (platform() == 'darwin') {
|
||||
nw.App.registerGlobalHotKey(new nw.Shortcut({key: 'Command+Shift+C'}), ()=>{});
|
||||
}
|
||||
|
||||
// Return if pgAdmin server process is already spawned
|
||||
// Added check for debugging purpose.
|
||||
if (pgadminServerProcess != null)
|
||||
|
||||
Reference in New Issue
Block a user