aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaVukovic <dvukovic@gmx.de>2018-12-15 07:11:27 +0100
committerDaVukovic <dvukovic@gmx.de>2018-12-15 11:07:47 +0100
commit224df2b258652b2c5e9c33c25d05207712580362 (patch)
tree286f327ac339592fcc35bdcfa066fdc75ff781a1
parent4c17e7769e5af6817e0c405438a36e5a552b21d9 (diff)
[settings] Fix announcement call
-rw-r--r--xbmc/listproviders/DirectoryProvider.cpp3
-rw-r--r--xbmc/settings/MediaSettings.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/xbmc/listproviders/DirectoryProvider.cpp b/xbmc/listproviders/DirectoryProvider.cpp
index b7273209b8..7fcaf8b52c 100644
--- a/xbmc/listproviders/DirectoryProvider.cpp
+++ b/xbmc/listproviders/DirectoryProvider.cpp
@@ -255,7 +255,8 @@ void CDirectoryProvider::Announce(ANNOUNCEMENT::AnnouncementFlag flag, const cha
if (strcmp(message, "OnScanFinished") == 0 ||
strcmp(message, "OnCleanFinished") == 0 ||
strcmp(message, "OnUpdate") == 0 ||
- strcmp(message, "OnRemove") == 0)
+ strcmp(message, "OnRemove") == 0 ||
+ strcmp(message, "OnRefresh") == 0)
m_updateState = INVALIDATED;
}
}
diff --git a/xbmc/settings/MediaSettings.cpp b/xbmc/settings/MediaSettings.cpp
index d2dc93fede..8cccd71c4d 100644
--- a/xbmc/settings/MediaSettings.cpp
+++ b/xbmc/settings/MediaSettings.cpp
@@ -352,7 +352,7 @@ void CMediaSettings::OnSettingChanged(std::shared_ptr<const CSetting> setting)
return;
if (setting->GetId() == CSettings::SETTING_VIDEOLIBRARY_SHOWUNWATCHEDPLOTS)
- CServiceBroker::GetAnnouncementManager()->Announce(ANNOUNCEMENT::VideoLibrary, "xbmc", "OnUpdate");
+ CServiceBroker::GetAnnouncementManager()->Announce(ANNOUNCEMENT::VideoLibrary, "xbmc", "OnRefresh");
}
int CMediaSettings::GetWatchedMode(const std::string &content) const