Move isSng control to settings page

This commit is contained in:
Geomitron
2023-12-22 14:33:19 -06:00
parent 22521c8f28
commit e504a62a60
10 changed files with 83 additions and 143 deletions

View File

@@ -1,4 +1,4 @@
import { settings } from '../SettingsHandler.ipc'
interface EventCallback {
'waitProgress': (remainingSeconds: number, totalSeconds: number) => void
@@ -36,7 +36,7 @@ class GoogleTimer {
if (this.hasTimerEnded() && this.callbacks.complete !== undefined) {
this.endTimer()
} else if (this.callbacks.waitProgress !== undefined) {
const delay = settings.rateLimitDelay
const delay = 31
this.callbacks.waitProgress(delay - this.rateLimitCounter, delay)
}
}
@@ -52,7 +52,7 @@ class GoogleTimer {
* Checks if enough time has elapsed since the last timer activation.
*/
private hasTimerEnded() {
return this.rateLimitCounter > settings.rateLimitDelay
return true
}
/**