From 863a73e540aa29e6c45fcbfd14589d91491a77eb Mon Sep 17 00:00:00 2001 From: Garrett Brown Date: Sat, 12 Oct 2019 06:50:06 +0200 Subject: [PATCH] Profiles: ensure that the skin is reloaded after profile is loaded Credit: Initial fix by Sam Nazarko --- xbmc/Application.cpp | 3 +++ xbmc/profiles/ProfileManager.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/xbmc/Application.cpp b/xbmc/Application.cpp index eedf819da73c7..fde7fdaee31ad 100644 --- a/xbmc/Application.cpp +++ b/xbmc/Application.cpp @@ -3757,6 +3757,9 @@ bool CApplication::OnMessage(CGUIMessage& message) ShowAppMigrationMessage(); m_bInitializing = false; + + if (message.GetSenderId() == WINDOW_SETTINGS_PROFILES) + g_application.ReloadSkin(false); } else if (message.GetParam1() == GUI_MSG_UPDATE_ITEM && message.GetItem()) { diff --git a/xbmc/profiles/ProfileManager.cpp b/xbmc/profiles/ProfileManager.cpp index 8e7fdd60f55b8..3b57dcd16fc6c 100644 --- a/xbmc/profiles/ProfileManager.cpp +++ b/xbmc/profiles/ProfileManager.cpp @@ -429,7 +429,7 @@ void CProfileManager::FinalizeLoadProfile() // if the user interfaces has been fully initialized let everyone know if (uiInitializationFinished) { - CGUIMessage msg(GUI_MSG_NOTIFY_ALL, 0, 0, GUI_MSG_UI_READY); + CGUIMessage msg(GUI_MSG_NOTIFY_ALL, WINDOW_SETTINGS_PROFILES, 0, GUI_MSG_UI_READY); CServiceBroker::GetGUI()->GetWindowManager().SendThreadMessage(msg); } }