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
MediaPortal 1 Plugins
FANatic Monitor
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="gemx" data-source="post: 250492" data-attributes="member: 26324"><p>Hmm, at first i don't understand this line</p><p>[CODE]</p><p> public bool showDialogOnThreshold(ArrayList hits)</p><p> {</p><p> if (GUIWindowManager.ActiveWindow != GetID)</p><p>[/CODE]</p><p>The dialog is only shown if another window than this plugin is shown.</p><p>I would assume that the dialog shows up even if i am already in the plugin screen because i may have forgotten about the exact threshold values.</p><p>Regarding the actual bug, i am not quite sure but it's this is not a good idea:</p><p>[CODE]</p><p> protected override void OnPageDestroy(int newWindowId)</p><p> {</p><p> if (timer != null && timer.Enabled)</p><p> {</p><p> timer.Stop();</p><p> }</p><p> Info("PAGEDESTROY");</p><p> if (wantsAlarm)</p><p> startAlarmTimer();</p><p> }</p><p>[/CODE]</p><p>You start the timer when the page gets destroyed.</p><p>This might cause issues too.</p></blockquote><p></p>
[QUOTE="gemx, post: 250492, member: 26324"] Hmm, at first i don't understand this line [CODE] public bool showDialogOnThreshold(ArrayList hits) { if (GUIWindowManager.ActiveWindow != GetID) [/CODE] The dialog is only shown if another window than this plugin is shown. I would assume that the dialog shows up even if i am already in the plugin screen because i may have forgotten about the exact threshold values. Regarding the actual bug, i am not quite sure but it's this is not a good idea: [CODE] protected override void OnPageDestroy(int newWindowId) { if (timer != null && timer.Enabled) { timer.Stop(); } Info("PAGEDESTROY"); if (wantsAlarm) startAlarmTimer(); } [/CODE] You start the timer when the page gets destroyed. This might cause issues too. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
FANatic Monitor
Contact us
RSS
Top
Bottom