refactor: remove ColorProvider::setColor (#5112)
We now either: 1) Rely on the setting updating the color 2) Use ColorProvider::color to set the underlying color
This commit is contained in:
@@ -103,10 +103,6 @@ void UserHighlightModel::customRowSetData(
|
||||
// Update the setting with the new value
|
||||
getSettings()->selfMessageHighlightColor.setValue(
|
||||
colorName);
|
||||
// Update the color provider with the new color to be used for future
|
||||
const_cast<ColorProvider &>(ColorProvider::instance())
|
||||
.updateColor(ColorType::SelfMessageHighlight,
|
||||
QColor(colorName));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user