From 0b3f2a098ff2eba7b27a29de1404f71c1133ca65 Mon Sep 17 00:00:00 2001 From: ilya-fedin Date: Sat, 26 Dec 2020 05:03:59 +0400 Subject: [PATCH] Fix resetting system font setting to default (#132) --- Telegram/SourceFiles/kotato/customboxes/fonts_box.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/kotato/customboxes/fonts_box.cpp b/Telegram/SourceFiles/kotato/customboxes/fonts_box.cpp index a46608fa1..d6e4a25c3 100644 --- a/Telegram/SourceFiles/kotato/customboxes/fonts_box.cpp +++ b/Telegram/SourceFiles/kotato/customboxes/fonts_box.cpp @@ -7,6 +7,7 @@ https://github.com/kotatogram/kotatogram-desktop/blob/dev/LEGAL */ #include "kotato/customboxes/fonts_box.h" +#include "base/platform/base_platform_info.h" #include "ui/widgets/checkbox.h" #include "ui/widgets/buttons.h" #include "ui/widgets/input_fields.h" @@ -139,7 +140,7 @@ void FontsBox::resetToDefault() { #ifdef DESKTOP_APP_USE_PACKAGED_FONTS cSetUseSystemFont(true); #else - cSetUseSystemFont(false); + cSetUseSystemFont(Platform::IsLinux()); #endif cSetUseOriginalMetrics(false); Kotato::JsonSettings::Write();