add interval to settings, update the script (it was not working as intented)

This commit is contained in:
vaguesyntax
2025-10-27 20:39:45 +03:00
parent 901aa820e5
commit 035e51b36e
4 changed files with 37 additions and 20 deletions
@@ -63,15 +63,26 @@ ContentPage {
ConfigSpinBox {
icon: "timer_off"
text: Translation.tr("Music recognition timeout (s)")
text: Translation.tr("Total duration timeout (s)")
value: Config.options.musicRecognition.timeout
from: 2
from: 10
to: 100
stepSize: 2
onValueChanged: {
Config.options.musicRecognition.timeout = value;
}
}
ConfigSpinBox {
icon: "av_timer"
text: Translation.tr("Polling interval (s)")
value: Config.options.musicRecognition.interval
from: 2
to: 10
stepSize: 1
onValueChanged: {
Config.options.musicRecognition.interval = value;
}
}
}
ContentSection {