fixed messages not redrawing after changing theme
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user