This commit is contained in:
the-djmaze 2022-10-12 23:08:28 +02:00
parent 063ed7d844
commit dc241ded1b
12 changed files with 18 additions and 16 deletions

View file

@ -4,7 +4,7 @@ import { koComputable } from 'External/ko';
import { Layout } from 'Common/EnumsUser';
import { pInt } from 'Common/Utils';
import { addObservablesTo } from 'External/ko';
import { $htmlCL, SettingsGet, fireEvent } from 'Common/Globals';
import { $htmlCL, SettingsGet, SettingsCapa, fireEvent } from 'Common/Globals';
import { ThemeStore } from 'Stores/Theme';
export const SettingsUserStore = new class {
@ -57,7 +57,7 @@ export const SettingsUserStore = new class {
let iAutoLogoutTimer;
self.delayLogout = (() => {
clearTimeout(iAutoLogoutTimer);
if (0 < self.autoLogout() && !SettingsGet('AccountSignMe')) {
if (0 < self.autoLogout() && !SettingsGet('AccountSignMe') && SettingsCapa('AutoLogout')) {
iAutoLogoutTimer = setTimeout(
rl.app.logout,
self.autoLogout() * 60000