Don't save custom theme fonts when we uncheck these options

This commit is contained in:
David Capello 2025-03-03 21:48:47 -03:00
parent da5909639b
commit ce989684d0

View File

@ -916,8 +916,10 @@ public:
// Change theme font
bool reset_theme = false;
{
const FontInfo fontInfo = themeFont()->info();
const FontInfo miniFontInfo = themeMiniFont()->info();
const FontInfo fontInfo = (customThemeFont()->isSelected() ? themeFont()->info() :
FontInfo());
const FontInfo miniFontInfo = (customMiniFont()->isSelected() ? themeMiniFont()->info() :
FontInfo());
auto fontStr = base::convert_to<std::string>(fontInfo);
auto miniFontStr = base::convert_to<std::string>(miniFontInfo);