mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Removed 'About pgAdmin 4' default menu option from macOS native menus.
This commit is contained in:
parent
98184e5835
commit
d1a9406bff
@ -287,6 +287,7 @@ function launchPgAdminWindow() {
|
||||
// Create Mac Builtin Menu
|
||||
if (platform() === 'darwin') {
|
||||
nativeMenu.createMacBuiltin('pgAdmin 4');
|
||||
nativeMenu?.items[0].submenu.removeAt(0)
|
||||
pgAdminMainScreen.menu = nativeMenu;
|
||||
}
|
||||
|
||||
|
@ -11,7 +11,7 @@ from flask_babel import gettext
|
||||
from pgadmin.utils.constants import PREF_LABEL_DISPLAY,\
|
||||
PREF_LABEL_KEYBOARD_SHORTCUTS, PREF_LABEL_TABS_SETTINGS, \
|
||||
PREF_LABEL_OPTIONS, QT_DEFAULT_PLACEHOLDER, VW_EDT_DEFAULT_PLACEHOLDER
|
||||
from flask_security import current_user
|
||||
from flask import current_app
|
||||
import config
|
||||
|
||||
LOCK_LAYOUT_LEVEL = {
|
||||
@ -181,6 +181,7 @@ def register_browser_preferences(self):
|
||||
fields=fields
|
||||
)
|
||||
|
||||
if not current_app.PGADMIN_RUNTIME:
|
||||
self.preference.register(
|
||||
'keyboard_shortcuts',
|
||||
'main_menu_file',
|
||||
|
Loading…
Reference in New Issue
Block a user