| 318 | }; |
| 319 | |
| 320 | void SetUseDictionary(bool useDictionary) |
| 321 | { |
| 322 | if (useDictionary) |
| 323 | { |
| 324 | dictionaryWindow.UpdateDictionary(); |
| 325 | if (dictionaryWindow.dictionary.empty()) |
| 326 | { |
| 327 | std::ofstream(DICTIONARY_SAVE_FILE) << u8"\ufeff" << DICTIONARY_INSTRUCTIONS; |
| 328 | _spawnlp(_P_DETACH, "notepad", "notepad", DICTIONARY_SAVE_FILE, NULL); // show file to user |
| 329 | } |
| 330 | } |
| 331 | settings.setValue(DICTIONARY, this->useDictionary = useDictionary); |
| 332 | } |
| 333 | |
| 334 | void ToggleClickThrough() |
| 335 | { |
nothing calls this directly
no test coverage detected