small refactor

This commit is contained in:
fourtf
2018-11-14 17:26:08 +01:00
parent 0f9ef9d0aa
commit d8fcc1a3ed
10 changed files with 106 additions and 128 deletions
+6 -10
View File
@@ -127,8 +127,7 @@ void WindowManager::updateWordTypeMask()
// bits
flags.set(MEF::BitsAmount);
flags.set(settings->animateEmotes ? MEF::BitsAnimated
: MEF::BitsStatic);
flags.set(settings->animateEmotes ? MEF::BitsAnimated : MEF::BitsStatic);
// badges
flags.set(settings->showBadgesGlobalAuthority ? MEF::BadgeGlobalAuthority
@@ -148,9 +147,9 @@ void WindowManager::updateWordTypeMask()
flags.set(MEF::AlwaysShow);
flags.set(MEF::Collapsed);
flags.set(settings->boldUsernames ? MEF::BoldUsername
: MEF::NonBoldUsername);
: MEF::NonBoldUsername);
flags.set(settings->lowercaseDomains ? MEF::LowercaseLink
: MEF::OriginalLink);
: MEF::OriginalLink);
// update flags
MessageElementFlags newFlags = static_cast<MessageElementFlags>(flags);
@@ -165,7 +164,7 @@ void WindowManager::updateWordTypeMask()
void WindowManager::layoutChannelViews(Channel *channel)
{
this->layout.invoke(channel);
this->layoutRequested.invoke(channel);
}
void WindowManager::forceLayoutChannelViews()
@@ -176,15 +175,12 @@ void WindowManager::forceLayoutChannelViews()
void WindowManager::repaintVisibleChatWidgets(Channel *channel)
{
if (this->mainWindow_ != nullptr)
{
this->mainWindow_->repaintVisibleChatWidgets(channel);
}
this->layoutRequested.invoke(channel);
}
void WindowManager::repaintGifEmotes()
{
this->repaintGifs.invoke();
this->gifRepaintRequested.invoke();
}
// void WindowManager::updateAll()