Commit 2784afb6 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(Colors): override colors at core creation

parent af69ff51
......@@ -34,6 +34,10 @@ using namespace std;
// =============================================================================
Colors::Colors (QObject *parent) : QObject(parent) {
QObject::connect(CoreManager::getInstance(), &CoreManager::coreCreated, this, &Colors::overrideColors);
}
void Colors::overrideColors () {
shared_ptr<linphone::Config> config = CoreManager::getInstance()->getCore()->getConfig();
const QMetaObject *info = metaObject();
......
......@@ -120,6 +120,9 @@ signals:
void colorTzChanged (const QColor &color);
void colorTerrorChanged (const QColor &color);
private:
void overrideColors ();
};
// -----------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment