fixed timestamps not updating when changed in the settings

This commit is contained in:
fourtf
2018-01-23 21:56:25 +01:00
parent f292d2e097
commit 8a77f918f6
5 changed files with 18 additions and 5 deletions
+6
View File
@@ -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;