Fix resetting system font setting to default (#132)

This commit is contained in:
ilya-fedin 2020-12-26 05:03:59 +04:00 committed by GitHub
parent 61615e3c4d
commit 0b3f2a098f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();