Pref // Bind Options to Menu Option Visibility.

- The "Reload User Phrases" menu command will not show unless either the Alt key gets pressed or the autoreload of user phrases data is checked Enabled in the Preferences window.
This commit is contained in:
ShikiSuen 2022-01-29 22:25:36 +08:00
parent fefe34bcc5
commit 8a8f3f0d2b
1 changed files with 4 additions and 2 deletions

View File

@ -163,7 +163,9 @@ static double FindHighestScore(const vector<NodeAnchor>& nodes, double epsilon)
[menu addItemWithTitle:NSLocalizedString(@"Edit Phrase Replacement Table", @"") action:@selector(openPhraseReplacement:) keyEquivalent:@""];
}
if (optionKeyPressed || !Preferences.shouldAutoReloadUserDataFiles) {
[menu addItemWithTitle:NSLocalizedString(@"Reload User Phrases", @"") action:@selector(reloadUserPhrases:) keyEquivalent:@""];
}
[menu addItem:[NSMenuItem separatorItem]]; // ------------------------------