home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
Improvement Suggestions
small change on guiwindowmanager.cs....
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="te3hpurp" data-source="post: 353813" data-attributes="member: 82806"><p>Hi</p><p></p><p>I don't have home button on mys remote and sometimes</p><p>count of previous windows is corrupted and i end up stucked</p><p>in some menu like movies and esc/back button won't go back anymore.</p><p></p><p>So would following change in code guarantee that if</p><p>previous window count is zero we end up home screen</p><p>after all ??</p><p></p><p>regs</p><p>te3hpurp.</p><p></p><p> public static void ShowPreviousWindow()</p><p> {</p><p> Log.Debug("Windowmanager: Goto previous window");</p><p> _isSwitchingToNewWindow = true;</p><p> try</p><p> {</p><p> int fromWindowId = ActiveWindow;</p><p> // Exit if there is no previous window</p><p> if (_listHistory.Count == 0)</p><p> {</p><p> //check if current window really is Home window </p><p> // added by te3hpurp</p><p> if (ActiveWindow == (int)GUIWindow.Window.WINDOW_HOME)</p><p> {</p><p> return;</p><p> }</p><p> else</p><p> {</p><p> int fromWindowId = (int)GUIWindow.Window.WINDOW_HOME;</p><p> _listHistory.Add((int)GUIWindow.Window.WINDOW_HOME);</p><p> }</p><p> }</p><p>.</p><p>.</p><p>.</p><p>.</p><p>.</p></blockquote><p></p>
[QUOTE="te3hpurp, post: 353813, member: 82806"] 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); } } . . . . . [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Improvement Suggestions
small change on guiwindowmanager.cs....
Contact us
RSS
Top
Bottom