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

Lehmden

Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,069
    3,681
    Lehmden
    Germany Germany
    Country flag
    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
    251
    100
    Country flag
    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
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    framug [solved] Some changes/fix in MP1 configuration client and server Submit: code patches (MediaPortal/TV-Server/etc.) 14
    framug [Approved] Fix Irtrans config bug Submit: code patches (MediaPortal/TV-Server/etc.) 4
    W [solved] [FIXED] Survivor season 40 not automatically matching My TVSeries 1
    P [solved] ATSC subtitles not fixed yet? General 2
    framug [Rejected] Fix PowerScheduler plugin for MP2 single seat Submit: Code Patches 9
    M [Pending] Fix for Inconsistent date display in TV Guide Submit: code patches (MediaPortal/TV-Server/etc.) 1
    doskabouter [Proposal] Merge PR Fix for source directory with spaces MediaPortal 1 15
    CyberSimian Fixes for Amped aMPed 5
    CyberSimian Fixes for Amped skin MediaPortal 1 10
    O [Question] Advice Wanted on Developing a Client Application for a Disabled Family Member MPExtended 1
    brena MCE Remote Disable Volume Mapping Input / Output interfaces 0
    cbr954rr How to disable a pre-configured plugin? General 2
    Steve.Rayner61 Online Videos - Automatic Updates fails 'Automatic update disabled. Check your internet connection' OnlineVideos 10
    M How do you disable USB drives from being detected by MP? General Support 0
    W Blu-ray chapter popups when watching from "Menu" - any way to disable them? watch/edit Videos 1
    doskabouter General Disable tuningdetail TV Engine 1
    J Blue Screen Error Submit: Bug Reports 0
    azzuro [fixed] 5011: Version label in Splash screen - pos, size from skin MediaPortal 1 61
    G [solved] Black Screen on all videos after upgrading to either 1.23 or 1.24 from 1.22 General Support 4
    F After resume, TV Server connection screen is shown General Support 4
    H random black screen live tv and videos (amended) General Support 0
    M [Duplicate] Always enter full screen when entering TV from main Menu Feature Requests 1
    M Change size of the splash screen Skins and Plugins Installer (MPEI) 2
    T Animated circular icon persists in centre of screen. General 10
    G Occasional Black screen on Live TV and Recorded TV Watch / Listen Media 5
    Similar threads

























    Top Bottom