[Approved] Fix for disabling the screen saver. (1 Viewer)

Lehmden

Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,580
    3,969
    Lehmden
    Home Country
    Germany Germany
    Hi
    ATM I don't have Internet at home. DSL should be connected here September 26th but is delayed until October 7th so I can't download much. And I don't have recent source at home. A small binary I could download but not if I need to compile whole MP2....
    BTW this did not made it into a3
     

    mrj

    Portal Pro
    January 27, 2012
    252
    100
    Should work on alpha 3.
    I added one line
    settings.ScreenSaverEnabled = screenSaverEnabled;

    after the change
    function looks like this

    public void ConfigureScreenSaver(bool screenSaverEnabled, double screenSaverTimeoutMin)
    {
    AppSettings settings = ServiceRegistration.Get<ISettingsManager>().Load<AppSettings>();
    settings.ScreenSaverTimeoutMin = screenSaverTimeoutMin;
    settings.ScreenSaverEnabled = screenSaverEnabled;
    ServiceRegistration.Get<ISettingsManager>().Save(settings);
    _screenSaverTimeOut = TimeSpan.FromMinutes(screenSaverTimeoutMin);
    _isScreenSaverEnabled = screenSaverEnabled;
    }
    /mrj
     

    mrj

    Portal Pro
    January 27, 2012
    252
    100
    Hi
    To make everybody happy I have compiled the fix for alpha 3.
    Still works.
    Added the dll
    /mrj
     

    Attachments

    • SkinEngine.zip
      301.8 KB

    Users who are viewing this thread

    Similar threads

    Great Work, i tried for 10h music and pictures without any problem. Thank you for your help. a Donation is on the way
    Great Work, i tried for 10h music and pictures without any problem. Thank you for your help. a Donation is on the way
    Hi, I use the slideshow when I play MP3-Playlists at partys to make the screen more interesting. Sadly after a couple-pictures I...
    Replies
    2
    Views
    849
    OK - Will care about ;)
    OK - Will care about ;)
    In version 1.36 (I think), technical specifications were added to the center panel of the movie info screen when 'Movie Info before...
    Replies
    3
    Views
    553
    Right, so are there any skins that are higher resolutions? I've had a look through the list and there are MP Display++ skins but no information on resolution.
    Right, so are there any skins that are higher resolutions? I've had a look through the list and there are MP Display++ skins but no...
    I have a new PC with a high resolution screen and want to manually configure the size of the windowed MP1 resolution. By default...
    Replies
    8
    Views
    1K
    I was not previously aware of the "Drive Free Space" plugin, and it is not easy to find. (There really ought to be an easier way of finding plugins.) There is this thread that introduces the plugin, and this thread that details some changes to the Titan skin made by Gary Martyn (from 2013 :eek: ). I installed the plugin on my Aorus...
    I was not previously aware of the "Drive Free Space" plugin, and it is not easy to find. (There really ought to be an easier way of...
    I have a multiseat MP setup running version 1.33. I use the Titan skin and yesterday I decided I would update all my plugins on my...
    Replies
    20
    Views
    6K
    That screen is generated by the file "MyVideo.xml", but it uses various other files too. When the list on the right is a list of episodes, the area in the middle contains the programme information for the episode that has the focus. In your screen shot, the list on the right is a list of folders. You could fill the area in the...
    That screen is generated by the file "MyVideo.xml", but it uses various other files too. When the list on the right is a list of...
    Can someone please assist me in the file name and location of which XML controls this screen. I want to create an additional box...
    Replies
    1
    Views
    164
    Top Bottom