diff options
author | Martijn Kaijser <martijn@xbmc.org> | 2017-01-03 17:43:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-03 17:43:51 +0100 |
commit | 87c8e48fec78851eac3bcd75b6863246623702a4 (patch) | |
tree | 3f959aefb2909cec0792dc93e042d4f67b8a0ccd | |
parent | 20bb734a8609660675308e1ee61895d457d901ee (diff) | |
parent | 08d877602bb1a8c0ea47d4339d34367cee9523be (diff) |
Merge pull request #11331 from garbear/backport-notifications
Backport: Hide notifications shown on device connect
-rw-r--r-- | xbmc/peripherals/Peripherals.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/xbmc/peripherals/Peripherals.cpp b/xbmc/peripherals/Peripherals.cpp index 9d4af41a0f..19e1e4d681 100644 --- a/xbmc/peripherals/Peripherals.cpp +++ b/xbmc/peripherals/Peripherals.cpp @@ -356,9 +356,12 @@ void CPeripherals::OnDeviceAdded(const CPeripheralBus &bus, const CPeripheral &p { OnDeviceChanged(); + //! @todo Improve device notifications in v18 +#if 0 // don't show a notification for devices detected during the initial scan if (bus.IsInitialised()) CGUIDialogKaiToast::QueueNotification(CGUIDialogKaiToast::Info, g_localizeStrings.Get(35005), peripheral.DeviceName()); +#endif } void CPeripherals::OnDeviceDeleted(const CPeripheralBus &bus, const CPeripheral &peripheral) @@ -366,10 +369,9 @@ void CPeripherals::OnDeviceDeleted(const CPeripheralBus &bus, const CPeripheral OnDeviceChanged(); //! @todo Improve device notifications in v18 - bool bNotify = false; - - if (bNotify) - CGUIDialogKaiToast::QueueNotification(CGUIDialogKaiToast::Info, g_localizeStrings.Get(35006), peripheral.DeviceName()); +#if 0 + CGUIDialogKaiToast::QueueNotification(CGUIDialogKaiToast::Info, g_localizeStrings.Get(35006), peripheral.DeviceName()); +#endif } void CPeripherals::OnDeviceChanged() |