messages refresh when toggeling the button
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user