mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add option to control how long the screensaver takes to start (#6165)
* Added option to control how long the screensaver takes to start * ESLint fixes * Requested pull request fixes * Alphabetized the translation string placement * Simplified getter
This commit is contained in:
parent
40d9f43049
commit
0cc2b0698a
5 changed files with 28 additions and 2 deletions
|
@ -11,7 +11,7 @@ import './screensavermanager.scss';
|
|||
function getMinIdleTime() {
|
||||
// Returns the minimum amount of idle time required before the screen saver can be displayed
|
||||
//time units used Millisecond
|
||||
return 180000;
|
||||
return userSettings.screensaverTime() * 1000;
|
||||
}
|
||||
|
||||
let lastFunctionalEvent = 0;
|
||||
|
@ -129,7 +129,7 @@ function ScreenSaverManager() {
|
|||
this.show();
|
||||
};
|
||||
|
||||
setInterval(onInterval, 10000);
|
||||
setInterval(onInterval, 5000);
|
||||
}
|
||||
|
||||
export default new ScreenSaverManager;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue