MCPcopy Create free account
hub / github.com/Artikash/Textractor / SetUseDictionary

Method SetUseDictionary

extensions/extrawindow.cpp:320–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

UpdateDictionaryMethod · 0.80

Tested by

no test coverage detected