fixed splits not redrawing after font changed

This commit is contained in:
2017-12-17 03:26:23 +01:00
parent 266ad36de3
commit 5cb33647dc
4 changed files with 19 additions and 6 deletions
+3 -1
View File
@@ -10,11 +10,13 @@ FontManager::FontManager()
, currentFont(this->currentFontFamily.getValue().c_str(), currentFontSize.getValue())
{
this->currentFontFamily.getValueChangedSignal().connect([this](const std::string &newValue) {
this->incGeneration();
this->currentFont.setFamily(newValue.c_str()); //
this->fontChanged.invoke();
});
this->currentFontSize.getValueChangedSignal().connect([this](const int &newValue) {
this->currentFont.setSize(newValue); //
this->incGeneration();
this->currentFont.setSize(newValue);
this->fontChanged.invoke();
});
}