Hi
I don't have home button on mys remote and sometimes
count of previous windows is corrupted and i end up stucked
in some menu like movies and esc/back button won't go back anymore.
So would following change in code guarantee that if
previous window count is zero we end up home screen
after all ??
regs
te3hpurp.
public static void ShowPreviousWindow()
{
Log.Debug("Windowmanager: Goto previous window");
_isSwitchingToNewWindow = true;
try
{
int fromWindowId = ActiveWindow;
// Exit if there is no previous window
if (_listHistory.Count == 0)
{
//check if current window really is Home window
// added by te3hpurp
if (ActiveWindow == (int)GUIWindow.Window.WINDOW_HOME)
{
return;
}
else
{
int fromWindowId = (int)GUIWindow.Window.WINDOW_HOME;
_listHistory.Add((int)GUIWindow.Window.WINDOW_HOME);
}
}
.
.
.
.
.
I don't have home button on mys remote and sometimes
count of previous windows is corrupted and i end up stucked
in some menu like movies and esc/back button won't go back anymore.
So would following change in code guarantee that if
previous window count is zero we end up home screen
after all ??
regs
te3hpurp.
public static void ShowPreviousWindow()
{
Log.Debug("Windowmanager: Goto previous window");
_isSwitchingToNewWindow = true;
try
{
int fromWindowId = ActiveWindow;
// Exit if there is no previous window
if (_listHistory.Count == 0)
{
//check if current window really is Home window
// added by te3hpurp
if (ActiveWindow == (int)GUIWindow.Window.WINDOW_HOME)
{
return;
}
else
{
int fromWindowId = (int)GUIWindow.Window.WINDOW_HOME;
_listHistory.Add((int)GUIWindow.Window.WINDOW_HOME);
}
}
.
.
.
.
.