From 5b45caadb112ae37a50030f42d9ef00a0b5bcd68 Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Fri, 17 Apr 2020 16:04:36 +0300 Subject: [PATCH] Fix font settings reset --- Telegram/SourceFiles/boxes/fonts_box.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Telegram/SourceFiles/boxes/fonts_box.cpp b/Telegram/SourceFiles/boxes/fonts_box.cpp index 7c734f59a..e76cb4e3c 100644 --- a/Telegram/SourceFiles/boxes/fonts_box.cpp +++ b/Telegram/SourceFiles/boxes/fonts_box.cpp @@ -136,6 +136,12 @@ void FontsBox::resetToDefault() { cSetSemiboldFont(QString()); cSetSemiboldFontIsBold(false); cSetMonospaceFont(QString()); +#ifdef DESKTOP_APP_USE_PACKAGED_FONTS + cSetUseSystemFont(true); +#else + cSetUseSystemFont(false); +#endif + cSetUseOriginalMetrics(false); KotatoSettings::Write(); App::restart(); };