Normal
Above the snippet I shared is this though:[CODE=csharp] tvNotifyDlg.SetImage(strLogo); tvNotifyDlg.TimeOut = _notifyTVTimeout; if (_playNotifyBeep) { MediaPortal.Util.Utils.PlaySound("notify.wav", false, true); } tvNotifyDlg.SetDefaultToYes(true); tvNotifyDlg.DoModal(GUIWindowManager.ActiveWindow); if (tvNotifyDlg.IsConfirmed) { try { MediaPortal.Player.g_Player.Stop(); if (c.IsTv) { MediaPortal.GUI.Library.GUIWindowManager.ActivateWindow((int)MediaPortal.GUI.Library.GUIWindow.Window.WINDOW_TV); TVHome.ViewChannelAndCheck(c); if (TVHome.Card.IsTimeShifting && TVHome.Card.IdChannel == c.IdChannel) { g_Player.ShowFullScreenWindow(); } } else if (c.IsRadio) { MediaPortal.GUI.Library.GUIWindowManager.ActivateWindow((int)MediaPortal.GUI.Library.GUIWindow.Window.WINDOW_RADIO); Radio.CurrentChannel = c; Radio.Play(); } } catch (Exception e) { Log.Error("TVHome: TVNotification: Error on starting channel {0} after notification: {1} {2} {3}", notify.Channel.DisplayName, e.Message, e.Source, e.StackTrace); }[/CODE]Including the above 2 lines reveals that a timeout for the dialogue is set.Should I still set the timeout to 5 ?
Above the snippet I shared is this though:
[CODE=csharp]
tvNotifyDlg.SetImage(strLogo);
tvNotifyDlg.TimeOut = _notifyTVTimeout;
if (_playNotifyBeep)
{
MediaPortal.Util.Utils.PlaySound("notify.wav", false, true);
}
tvNotifyDlg.SetDefaultToYes(true);
tvNotifyDlg.DoModal(GUIWindowManager.ActiveWindow);
if (tvNotifyDlg.IsConfirmed)
try
MediaPortal.Player.g_Player.Stop();
if (c.IsTv)
MediaPortal.GUI.Library.GUIWindowManager.ActivateWindow((int)MediaPortal.GUI.Library.GUIWindow.Window.WINDOW_TV);
TVHome.ViewChannelAndCheck(c);
if (TVHome.Card.IsTimeShifting && TVHome.Card.IdChannel == c.IdChannel)
g_Player.ShowFullScreenWindow();
else if (c.IsRadio)
MediaPortal.GUI.Library.GUIWindowManager.ActivateWindow((int)MediaPortal.GUI.Library.GUIWindow.Window.WINDOW_RADIO);
Radio.CurrentChannel = c;
Radio.Play();
catch (Exception e)
Log.Error("TVHome: TVNotification: Error on starting channel {0} after notification: {1} {2} {3}", notify.Channel.DisplayName, e.Message, e.Source, e.StackTrace);
[/CODE]
Including the above 2 lines reveals that a timeout for the dialogue is set.
Should I still set the timeout to 5 ?