messages refresh when toggeling the button

This commit is contained in:
fourtf
2018-01-17 17:02:34 +01:00
parent e694214243
commit b3951262c8
7 changed files with 27 additions and 29 deletions
+3 -3
View File
@@ -84,10 +84,10 @@ bool MessageLayout::layout(int width, float scale, MessageElement::Flags flags)
this->fontGeneration = singletons::FontManager::getInstance().getGeneration();
// check if work mask changed
bool wordMaskChanged =
this->currentWordTypes != singletons::SettingManager::getInstance().getWordTypeMask();
bool wordMaskChanged = this->currentWordFlags !=
flags; // singletons::SettingManager::getInstance().getWordTypeMask();
layoutRequired |= wordMaskChanged;
this->currentWordTypes = singletons::SettingManager::getInstance().getWordTypeMask();
this->currentWordFlags = flags; // singletons::SettingManager::getInstance().getWordTypeMask();
// check if dpi changed
bool scaleChanged = this->scale != scale;
+1 -1
View File
@@ -70,7 +70,7 @@ private:
float scale = -1;
unsigned int bufferUpdatedCount = 0;
MessageElement::Flags currentWordTypes = MessageElement::None;
MessageElement::Flags currentWordFlags = MessageElement::None;
int collapsedHeight = 32;