mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fixed Spelling Highlighter creation on unsupported platforms.
This commit is contained in:
@@ -278,6 +278,9 @@ void InitSpellchecker(
|
||||
not_null<Main::Session*> session,
|
||||
not_null<Ui::InputField*> field) {
|
||||
#ifndef TDESKTOP_DISABLE_SPELLCHECK
|
||||
if (!Platform::Spellchecker::IsAvailable()) {
|
||||
return;
|
||||
}
|
||||
const auto s = Ui::CreateChild<Spellchecker::SpellingHighlighter>(
|
||||
field.get(),
|
||||
session->settings().spellcheckerEnabledValue());
|
||||
|
||||
Reference in New Issue
Block a user