mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
Fixed Spelling Highlighter creation on unsupported platforms.
This commit is contained in:
parent
1ee7801c0b
commit
e5682a9b25
1 changed files with 3 additions and 0 deletions
|
@ -278,6 +278,9 @@ void InitSpellchecker(
|
||||||
not_null<Main::Session*> session,
|
not_null<Main::Session*> session,
|
||||||
not_null<Ui::InputField*> field) {
|
not_null<Ui::InputField*> field) {
|
||||||
#ifndef TDESKTOP_DISABLE_SPELLCHECK
|
#ifndef TDESKTOP_DISABLE_SPELLCHECK
|
||||||
|
if (!Platform::Spellchecker::IsAvailable()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const auto s = Ui::CreateChild<Spellchecker::SpellingHighlighter>(
|
const auto s = Ui::CreateChild<Spellchecker::SpellingHighlighter>(
|
||||||
field.get(),
|
field.get(),
|
||||||
session->settings().spellcheckerEnabledValue());
|
session->settings().spellcheckerEnabledValue());
|
||||||
|
|
Loading…
Add table
Reference in a new issue