fixed timestamps not updating when changed in the settings
This commit is contained in:
@@ -89,6 +89,12 @@ bool MessageLayout::layout(int width, float scale, MessageElement::Flags flags)
|
||||
layoutRequired |= wordMaskChanged;
|
||||
this->currentWordFlags = flags; // singletons::SettingManager::getInstance().getWordTypeMask();
|
||||
|
||||
// check if timestamp format changed
|
||||
bool timestampFormatChanged =
|
||||
this->timestampFormat != singletons::SettingManager::getInstance().timestampFormat;
|
||||
|
||||
layoutRequired |= timestampFormatChanged;
|
||||
|
||||
// check if dpi changed
|
||||
bool scaleChanged = this->scale != scale;
|
||||
layoutRequired |= scaleChanged;
|
||||
|
||||
@@ -67,6 +67,7 @@ private:
|
||||
int currentLayoutWidth = -1;
|
||||
int fontGeneration = -1;
|
||||
int emoteGeneration = -1;
|
||||
QString timestampFormat;
|
||||
float scale = -1;
|
||||
unsigned int bufferUpdatedCount = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user