1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-23 10:13:32 +03:00

Add comment how to add enable-debug-menu

This commit is contained in:
Tae Won Ha 2023-12-16 19:57:53 +01:00
parent 43170dd3ad
commit d2b8d844f4
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
2 changed files with 7 additions and 0 deletions

View File

@ -8,6 +8,12 @@ clean=false for_dev=true ./bin/build_nvimserver.sh
You can set `clean=true` if you want to clean the existing build.
### How to enable the Debug menu in Release build
```bash
defaults write com.qvacua.VimR enable-debug-menu 1
```
## How to update gettext (libintl)
Update `./bin/neovim/resources/build_info../bin/neovim/resources/buildInfo.json`

View File

@ -157,6 +157,7 @@ extension AppDelegate {
#if DEBUG
NSApp.mainMenu?.items.first { $0.identifier == debugMenuItemIdentifier }?.isHidden = false
#else
// defaults write com.qvacua.VimR enable-debug-menu 1
if UserDefaults.standard.bool(forKey: "enable-debug-menu") {
NSApp.mainMenu?.items.first { $0.identifier == debugMenuItemIdentifier }?.isHidden = false
}