Fix resetting system font setting to default (#132)
This commit is contained in:
parent
61615e3c4d
commit
0b3f2a098f
1 changed files with 2 additions and 1 deletions
|
|
@ -7,6 +7,7 @@ https://github.com/kotatogram/kotatogram-desktop/blob/dev/LEGAL
|
||||||
*/
|
*/
|
||||||
#include "kotato/customboxes/fonts_box.h"
|
#include "kotato/customboxes/fonts_box.h"
|
||||||
|
|
||||||
|
#include "base/platform/base_platform_info.h"
|
||||||
#include "ui/widgets/checkbox.h"
|
#include "ui/widgets/checkbox.h"
|
||||||
#include "ui/widgets/buttons.h"
|
#include "ui/widgets/buttons.h"
|
||||||
#include "ui/widgets/input_fields.h"
|
#include "ui/widgets/input_fields.h"
|
||||||
|
|
@ -139,7 +140,7 @@ void FontsBox::resetToDefault() {
|
||||||
#ifdef DESKTOP_APP_USE_PACKAGED_FONTS
|
#ifdef DESKTOP_APP_USE_PACKAGED_FONTS
|
||||||
cSetUseSystemFont(true);
|
cSetUseSystemFont(true);
|
||||||
#else
|
#else
|
||||||
cSetUseSystemFont(false);
|
cSetUseSystemFont(Platform::IsLinux());
|
||||||
#endif
|
#endif
|
||||||
cSetUseOriginalMetrics(false);
|
cSetUseOriginalMetrics(false);
|
||||||
Kotato::JsonSettings::Write();
|
Kotato::JsonSettings::Write();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue