mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
fixed messages not redrawing after changing theme
This commit is contained in:
parent
ded61256de
commit
4010c49c84
2 changed files with 7 additions and 1 deletions
|
@ -51,11 +51,15 @@ float BaseWidget::getDpiMultiplier()
|
|||
|
||||
void BaseWidget::init()
|
||||
{
|
||||
this->colorScheme.updated.connect([this]() {
|
||||
auto connection = this->colorScheme.updated.connect([this]() {
|
||||
this->refreshTheme();
|
||||
|
||||
this->update();
|
||||
});
|
||||
|
||||
QObject::connect(this, &QObject::destroyed, [connection] {
|
||||
connection.disconnect(); //
|
||||
});
|
||||
}
|
||||
|
||||
void BaseWidget::initAsWindow()
|
||||
|
|
|
@ -290,6 +290,8 @@ QVBoxLayout *SettingsDialog::createAppearanceTab()
|
|||
combo->setCurrentText(currentComboText);
|
||||
|
||||
QObject::connect(combo, &QComboBox::currentTextChanged, this, [](const QString &value) {
|
||||
// dirty hack
|
||||
EmoteManager::getInstance().incGeneration();
|
||||
pajlada::Settings::Setting<std::string>::set("/appearance/theme/name",
|
||||
value.toStdString());
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue