Update a few other references to use SessionData

This commit is contained in:
zontreck 2024-05-25 04:52:03 -07:00
parent 3122343be7
commit e14f788684

View file

@ -222,7 +222,7 @@ class StateMachine {
} }
} }
if (send && settings.inst!.timer.enabled) { if (send && SessionData.enableRestartTimer) {
// Send the alert message // Send the alert message
SessionData.CURRENT_INTERVAL = current; SessionData.CURRENT_INTERVAL = current;
if (current.type == WarnType.Intrusive) { if (current.type == WarnType.Intrusive) {
@ -267,7 +267,7 @@ class StateMachine {
// Check Total Seconds // Check Total Seconds
if (SessionData.timer.getTotalSeconds() == 0 && if (SessionData.timer.getTotalSeconds() == 0 &&
settings.inst!.timer.enabled) { SessionData.enableRestartTimer) {
SessionData.shutdownPending = true; SessionData.shutdownPending = true;
} }