mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 14:50:05 +00:00
Formatting font_manager.cpp
This commit is contained in:
parent
3a8cdb8ea1
commit
afcca785eb
1 changed files with 14 additions and 14 deletions
|
|
@ -139,22 +139,22 @@ void FontManager::Impl::ConnectSignals()
|
|||
});
|
||||
}
|
||||
|
||||
QObject::connect(
|
||||
&SettingsManager::Instance(),
|
||||
&SettingsManager::SettingsSaved,
|
||||
self_,
|
||||
[this]()
|
||||
{
|
||||
std::scoped_lock lock {dirtyFontsMutex_, fontCategoryMutex_};
|
||||
QObject::connect(&SettingsManager::Instance(),
|
||||
&SettingsManager::SettingsSaved,
|
||||
self_,
|
||||
[this]()
|
||||
{
|
||||
std::scoped_lock lock {dirtyFontsMutex_,
|
||||
fontCategoryMutex_};
|
||||
|
||||
for (auto fontCategory : dirtyFonts_)
|
||||
{
|
||||
UpdateImGuiFont(fontCategory);
|
||||
UpdateQFont(fontCategory);
|
||||
}
|
||||
for (auto fontCategory : dirtyFonts_)
|
||||
{
|
||||
UpdateImGuiFont(fontCategory);
|
||||
UpdateQFont(fontCategory);
|
||||
}
|
||||
|
||||
dirtyFonts_.clear();
|
||||
});
|
||||
dirtyFonts_.clear();
|
||||
});
|
||||
}
|
||||
|
||||
void FontManager::InitializeFonts()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue