38 # set initial values |
38 # set initial values |
39 self.spellCheckEnabledCheckBox.setChecked( |
39 self.spellCheckEnabledCheckBox.setChecked( |
40 Preferences.getWebBrowser("SpellCheckEnabled") |
40 Preferences.getWebBrowser("SpellCheckEnabled") |
41 ) |
41 ) |
42 self.on_spellCheckEnabledCheckBox_clicked() |
42 self.on_spellCheckEnabledCheckBox_clicked() |
|
43 self.unencryptedCheckBox.setChecked( |
|
44 Preferences.getWebBrowser("ForceHttpDictionaryDownload") |
|
45 ) |
43 |
46 |
44 if OSUtilities.isMacPlatform(): |
47 if OSUtilities.isMacPlatform(): |
45 self.__dictionaryDirectories = { |
48 self.__dictionaryDirectories = { |
46 QDir.cleanPath( |
49 QDir.cleanPath( |
47 QCoreApplication.applicationDirPath() |
50 QCoreApplication.applicationDirPath() |
138 languages.append(itm.data(Qt.ItemDataRole.UserRole)) |
141 languages.append(itm.data(Qt.ItemDataRole.UserRole)) |
139 |
142 |
140 Preferences.setWebBrowser( |
143 Preferences.setWebBrowser( |
141 "SpellCheckEnabled", self.spellCheckEnabledCheckBox.isChecked() |
144 "SpellCheckEnabled", self.spellCheckEnabledCheckBox.isChecked() |
142 ) |
145 ) |
|
146 Preferences.setWebBrowser( |
|
147 "ForceHttpDictionaryDownload", self.unencryptedCheckBox.isChecked() |
|
148 ) |
143 Preferences.setWebBrowser("SpellCheckLanguages", languages) |
149 Preferences.setWebBrowser("SpellCheckLanguages", languages) |
144 |
150 |
145 @pyqtSlot() |
151 @pyqtSlot() |
146 def on_spellCheckEnabledCheckBox_clicked(self): |
152 def on_spellCheckEnabledCheckBox_clicked(self): |
147 """ |
153 """ |