From 08d877602bb1a8c0ea47d4339d34367cee9523be Mon Sep 17 00:00:00 2001 From: Garrett Brown Date: Sat, 31 Dec 2016 13:11:04 -0800 Subject: Hide notifications shown on device connect This also fixes CID 1398191: Control flow issues (DEADCODE) --- xbmc/peripherals/Peripherals.cpp | 10 ++++++---- 1 file 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() -- cgit v1.2.3