TvGuide in navigation history.... (2 Viewers)

te3hpurp

Retired Team Member
  • Premium Supporter
  • September 23, 2008
    910
    231
    Rovaniemi
    Home Country
    Finland Finland
    Hi.

    I don't have a Home button in my remote, only back/return button. So after a while
    when I've used epg several times i have to press back button several times to get to MyTv and Home.

    So i was just wondering if its really wise to store TvGuide dialog id into _listHistory array, which is controlling
    back button operation. if you have used tv guide like 10 times, back button brings back that epg 10 times.

    Most of us(i think, not sure) still use Egp button in remote to get to TvGuide.

    I think it's necessary to store it at all.

    so, is following change enough to avoid this, for patching
    it for me to build my own version....


    GuiWindowManager.cs:

    in public static void ActivateWindow(int newWindowId, bool replaceWindow)

    replace:
    _listHistory.Add(_activeWindowId);

    with:

    if ((_activeWindowId != (int)GUIWindow.Window.WINDOW_DIALOG_TVGUIDE))
    {
    _listHistory.Add(_activeWindowId);
    }


    regards,
    te3hpurp


    Edited


    First solution did not work, but i'm not sure why. It was not enough to block
    TVGUIDE windowID to be stored into _lastHistory. It leaved TvFullscree windowsID:s into _lastHistory
    many times in a row. Actually as many times as you've used epg, so those should be removed too.

    So i just made a static function which removes dublicates & few windows id's that i don't want.


    regarsds,

    Here is patch for 21720

    Patch updated, now it works like i wanted it to be.

    Again, patch updated. Back to original solution(almost).
    If in tunning details we want get back to fullscreen tv(wont we) :)
    Allthough tunning details is useless for me at least.
    because i have dvb-s & dvb-t tuners, it allways shows only
    dvb-s details no matter which tuner is tuned to channel.

    but anyway it's nice have it like this.


    Mp 1.01 patch for back button patch
    Also patched core.dll is attached. It should go into "Team Mediaportal\Mediaportal" directory.

    Updated Core.dll into 1.02,
    patch file is not updated. Use copy paste to modify guiwindowmanager.cs id you want own build.



    regards.
     

    Attachments

    • BackButton.patch
      30.6 KB

    joystick

    MP Donator
  • Premium Supporter
  • January 26, 2006
    892
    39
    Home Country
    Germany Germany
    ohhh, I absolutely support your request/change idea!

    It's really annoying to push "exit/back" like 10 times to get to home screen again!!
    Unfortunately I cannot tell you if your code is correct etc.

    Please update if you managed to change your settings....


    cheers

    joystick
     

    te3hpurp

    Retired Team Member
  • Premium Supporter
  • September 23, 2008
    910
    231
    Rovaniemi
    Home Country
    Finland Finland
    I got it working..

    For me at least, allthough above method did not work very well. I needed to
    create static function for removing dublicates && TvGuide window ID && TvFullscreen windowId

    But hey, it's guick & dirty method.

    Whole installation package is so large, but i can provide patch if youwant one..


    Regards,
     

    gemx

    Retired Team Member
  • Premium Supporter
  • October 31, 2006
    1,972
    539
    Home Country
    Germany Germany
    That was also bothering me for quite a long time.
    Could you please provide the patch and if possible, state why the approach in your first post didn't work?

    Thanks
     

    te3hpurp

    Retired Team Member
  • Premium Supporter
  • September 23, 2008
    910
    231
    Rovaniemi
    Home Country
    Finland Finland
    That was also bothering me for quite a long time.
    Could you please provide the patch and if possible, state why the approach in your first post didn't work?

    Thanks

    hi,
    patch is in edited first message

    Dunno what hapened, but it's not working anymore. It did last night,when i was doing it.
    Strange. I'll get back to board and try to figure it out..

    Mp Crashed for losing network during night, so was there some strange reborn of older dll or what :)
     

    risu

    MP Donator
  • Premium Supporter
  • September 22, 2006
    279
    19
    Home Country
    Finland Finland
    Would be great to have it at least selectable option on tv-plugin etc. This has been bugging me for a while too but always when I saw or started discussion about it, the result was the same: it should work like that.

    So as an option, "we really want to use history" -guys could still use it and the rest of us could enjoy better UI experience, no offence :D History works rather well on other places but I'd disable it on all tv-plugin subpages (same problem with teletext etc), I mean TV UI isn't traditionally controlled like a webpage..
     

    te3hpurp

    Retired Team Member
  • Premium Supporter
  • September 23, 2008
    910
    231
    Rovaniemi
    Home Country
    Finland Finland
    I agree, but so far i just have to use the patch i've done. Maybe i find some time to make it selectable option as you suggested. Then there might be a small change to makei to the svn....

    regards,
     

    Users who are viewing this thread

    Top Bottom