@@ -140,7 +140,6 @@ internal sealed class ConfigManager
140
140
public KeyGesture DisableHotkeysKeyGesture { get ; private set ; } = new ( Key . Pause , ModifierKeys . Alt ) ;
141
141
public KeyGesture MiningModeKeyGesture { get ; private set ; } = new ( Key . M , ModifierKeys . Alt ) ;
142
142
public KeyGesture PlayAudioKeyGesture { get ; private set ; } = new ( Key . P , ModifierKeys . Alt ) ;
143
- public KeyGesture KanjiModeKeyGesture { get ; private set ; } = new ( Key . K , ModifierKeys . Alt ) ;
144
143
public KeyGesture ShowManageDictionariesWindowKeyGesture { get ; private set ; } = new ( Key . D , ModifierKeys . Alt ) ;
145
144
public KeyGesture ShowManageFrequenciesWindowKeyGesture { get ; private set ; } = new ( Key . F , ModifierKeys . Alt ) ;
146
145
public KeyGesture ShowPreferencesWindowKeyGesture { get ; private set ; } = new ( Key . L , ModifierKeys . Alt ) ;
@@ -511,7 +510,6 @@ public void ApplyPreferences(SqliteConnection connection)
511
510
DisableHotkeysKeyGesture = KeyGestureUtils . GetKeyGestureFromConfig ( connection , nameof ( DisableHotkeysKeyGesture ) , DisableHotkeysKeyGesture ) ;
512
511
MiningModeKeyGesture = KeyGestureUtils . GetKeyGestureFromConfig ( connection , nameof ( MiningModeKeyGesture ) , MiningModeKeyGesture ) ;
513
512
PlayAudioKeyGesture = KeyGestureUtils . GetKeyGestureFromConfig ( connection , nameof ( PlayAudioKeyGesture ) , PlayAudioKeyGesture ) ;
514
- KanjiModeKeyGesture = KeyGestureUtils . GetKeyGestureFromConfig ( connection , nameof ( KanjiModeKeyGesture ) , KanjiModeKeyGesture ) ;
515
513
LookupKeyKeyGesture = KeyGestureUtils . GetKeyGestureFromConfig ( connection , nameof ( LookupKeyKeyGesture ) , LookupKeyKeyGesture ) ;
516
514
ClosePopupKeyGesture = KeyGestureUtils . GetKeyGestureFromConfig ( connection , nameof ( ClosePopupKeyGesture ) , ClosePopupKeyGesture ) ;
517
515
ShowStatsKeyGesture = KeyGestureUtils . GetKeyGestureFromConfig ( connection , nameof ( ShowStatsKeyGesture ) , ShowStatsKeyGesture ) ;
@@ -736,7 +734,6 @@ public void LoadPreferenceWindow(PreferencesWindow preferenceWindow)
736
734
preferenceWindow . DisableHotkeysKeyGestureTextBox . Text = DisableHotkeysKeyGesture . ToFormattedString ( ) ;
737
735
preferenceWindow . MiningModeKeyGestureTextBox . Text = MiningModeKeyGesture . ToFormattedString ( ) ;
738
736
preferenceWindow . PlayAudioKeyGestureTextBox . Text = PlayAudioKeyGesture . ToFormattedString ( ) ;
739
- preferenceWindow . KanjiModeKeyGestureTextBox . Text = KanjiModeKeyGesture . ToFormattedString ( ) ;
740
737
preferenceWindow . LookupKeyKeyGestureTextBox . Text = LookupKeyKeyGesture . ToFormattedString ( ) ;
741
738
742
739
preferenceWindow . ShowManageDictionariesWindowKeyGestureTextBox . Text =
@@ -837,7 +834,6 @@ public void LoadPreferenceWindow(PreferencesWindow preferenceWindow)
837
834
preferenceWindow . ForceSyncAnkiCheckBox . IsChecked = coreConfigManager . ForceSyncAnki ;
838
835
preferenceWindow . AllowDuplicateCardsCheckBox . IsChecked = coreConfigManager . AllowDuplicateCards ;
839
836
preferenceWindow . CheckForDuplicateCardsCheckBox . IsChecked = coreConfigManager . CheckForDuplicateCards ;
840
- preferenceWindow . KanjiModeCheckBox . IsChecked = coreConfigManager . KanjiMode ;
841
837
preferenceWindow . AutoAdjustFontSizesOnResolutionChangeCheckBox . IsChecked = AutoAdjustFontSizesOnResolutionChange ;
842
838
preferenceWindow . HighlightLongestMatchCheckBox . IsChecked = HighlightLongestMatch ;
843
839
preferenceWindow . AutoPlayAudioCheckBox . IsChecked = AutoPlayAudio ;
@@ -988,7 +984,6 @@ public async Task SavePreferences(PreferencesWindow preferenceWindow)
988
984
KeyGestureUtils . UpdateKeyGesture ( connection , nameof ( DisableHotkeysKeyGesture ) , preferenceWindow . DisableHotkeysKeyGestureTextBox . Text ) ;
989
985
KeyGestureUtils . UpdateKeyGesture ( connection , nameof ( MiningModeKeyGesture ) , preferenceWindow . MiningModeKeyGestureTextBox . Text ) ;
990
986
KeyGestureUtils . UpdateKeyGesture ( connection , nameof ( PlayAudioKeyGesture ) , preferenceWindow . PlayAudioKeyGestureTextBox . Text ) ;
991
- KeyGestureUtils . UpdateKeyGesture ( connection , nameof ( KanjiModeKeyGesture ) , preferenceWindow . KanjiModeKeyGestureTextBox . Text ) ;
992
987
KeyGestureUtils . UpdateKeyGesture ( connection , nameof ( LookupKeyKeyGesture ) , preferenceWindow . LookupKeyKeyGestureTextBox . Text ) ;
993
988
994
989
KeyGestureUtils . UpdateKeyGesture ( connection , nameof ( ShowManageDictionariesWindowKeyGesture ) ,
@@ -1195,9 +1190,6 @@ public async Task SavePreferences(PreferencesWindow preferenceWindow)
1195
1190
1196
1191
ConfigDBManager . UpdateSetting ( connection , nameof ( PopupFont ) , preferenceWindow . PopupFontComboBox . SelectedValue . ToString ( ) ! ) ;
1197
1192
1198
- ConfigDBManager . UpdateSetting ( connection , nameof ( CoreConfigManager . KanjiMode ) ,
1199
- preferenceWindow . KanjiModeCheckBox . IsChecked . ToString ( ) ! ) ;
1200
-
1201
1193
ConfigDBManager . UpdateSetting ( connection , nameof ( CoreConfigManager . ForceSyncAnki ) ,
1202
1194
preferenceWindow . ForceSyncAnkiCheckBox . IsChecked . ToString ( ) ! ) ;
1203
1195
0 commit comments