Activate spellchecking on Linux

This commit is contained in:
Nicholas Guriev 2019-11-13 09:52:44 +03:00 committed by John Preston
parent 8a888051e5
commit 22585ca919
1 changed files with 6 additions and 2 deletions

View File

@ -32,6 +32,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "app.h"
#include "styles/style_settings.h"
#ifndef TDESKTOP_DISABLE_SPELLCHECK
#include "spellcheck/platform/platform_spellcheck.h"
#endif // !TDESKTOP_DISABLE_SPELLCHECK
namespace Settings {
bool HasConnectionType() {
@ -246,9 +250,9 @@ void SetupUpdate(not_null<Ui::VerticalLayout*> container) {
bool HasSystemSpellchecker() {
#ifdef TDESKTOP_DISABLE_SPELLCHECK
return false;
#else
return Platform::Spellchecker::IsAvailable();
#endif // TDESKTOP_DISABLE_SPELLCHECK
return (Platform::IsWindows() && Platform::IsWindows8OrGreater())
|| Platform::IsMac();
}
void SetupSpellchecker(