small change on guiwindowmanager.cs.... (1 Viewer)

te3hpurp

Retired Team Member
  • Premium Supporter
  • September 23, 2008
    910
    231
    Rovaniemi
    Home Country
    Finland Finland
    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);
    }
    }
    .
    .
    .
    .
    .
     

    Users who are viewing this thread

    Top Bottom