NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 49 50 51 52 53 … 93 Next »
Panel/Screen Saver - remove from menu/config list

 
  • 0 Vote(s) - 0 Average
Panel/Screen Saver - remove from menu/config list
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#1
2006-10-14, 02:41 AM
I think something recent. I have a plugin that doubles as a screen saver and a panel. Recently it has been showing up in the config app and main menu.

Screen savers as I understood it were just like normal plugins (i.e implement IMenuTask)

Well if they Implement IMenuTask, how do I make it not show up in the config app under plugins, and also not show up in the main menu.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#2
2006-10-14, 04:05 AM
Sorry, I dont think there is any way you can stop them appearing in those other locations. I only used IMenuTask objects for screensavers because it was convenient for me. I wasnt really thinking so much about user supply plugin screensavers.

I'll try to add some improvements in this area in future.
Jeff
Offline

Posting Freak

Posts: 1,933
Threads: 69
Joined: Oct 2004
#3
2006-10-14, 01:10 PM
To have it not show up in only show up in the config menu, return a different string from getName in config vs running. For example, here is what the VA Panel does.

Code:
        public string getName()
        {
            // Only show this in the config app
            if (PluginHelperFactory.getPluginHelper() == null)
                return "Video Archive Panel";
            else
                return "VAPanelScreenSaver";
        }

Jeff
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#4
2006-10-14, 03:51 PM
Yep, that'll do it. Good work around.
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#5
2006-10-14, 07:17 PM
Cheers i thought I'd played with similar, but I would have tried not returning anything...
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Channels List by Channel Group Name scJohn 1 2,763 2018-01-05, 10:45 PM
Last Post: mvallevand
  Channel List (native controller) psycik 2 3,060 2017-06-19, 09:14 AM
Last Post: psycik
  List of "IEventNotification" events? reven 8 3,356 2012-11-01, 10:56 PM
Last Post: reven
  Multiple lists like in Search Screen cncb 7 3,236 2012-08-08, 09:11 PM
Last Post: cncb
  How to prevent default screen background? cncb 28 8,271 2012-05-16, 08:28 PM
Last Post: ACTCMS
  Building a list of files in media folders (npvr Music and Videos) bgowland 2 1,863 2012-02-05, 10:29 AM
Last Post: bgowland
  Update NewSyleListPlugin Button list dynamically? psycik 2 1,730 2011-12-22, 12:25 AM
Last Post: mvallevand
  Single row horizontal list in popup? cncb 4 2,173 2011-09-28, 09:48 PM
Last Post: cncb
  Concatenate Name and Subtitle in Pending Recordings Screen Northpole 0 1,183 2011-09-20, 02:54 PM
Last Post: Northpole
  Settings config screen for class IEventNotification plugin imilne 9 3,466 2011-09-17, 06:06 PM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode