aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Kaijser <martijn@xbmc.org>2016-12-29 10:27:10 +0100
committerGitHub <noreply@github.com>2016-12-29 10:27:10 +0100
commit6257e42c9e75bf1a9d26046258d7636f5c890cf2 (patch)
treea488ab5b718b936f52e7858c8b494a43fad3aedb
parent7faa623903378799e9efcc30bad33e40e1920ec7 (diff)
parentb153fb05cbbeb456761cfcca8d64a152b5a11b9d (diff)
Merge pull request #11290 from garbear/backport-notifications
Backport: Hide device event notifications
-rw-r--r--xbmc/peripherals/Peripherals.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/xbmc/peripherals/Peripherals.cpp b/xbmc/peripherals/Peripherals.cpp
index d6cbe6f39e..9d4af41a0f 100644
--- a/xbmc/peripherals/Peripherals.cpp
+++ b/xbmc/peripherals/Peripherals.cpp
@@ -365,7 +365,11 @@ void CPeripherals::OnDeviceDeleted(const CPeripheralBus &bus, const CPeripheral
{
OnDeviceChanged();
- CGUIDialogKaiToast::QueueNotification(CGUIDialogKaiToast::Info, g_localizeStrings.Get(35006), peripheral.DeviceName());
+ //! @todo Improve device notifications in v18
+ bool bNotify = false;
+
+ if (bNotify)
+ CGUIDialogKaiToast::QueueNotification(CGUIDialogKaiToast::Info, g_localizeStrings.Get(35006), peripheral.DeviceName());
}
void CPeripherals::OnDeviceChanged()