diff --git a/src/audiomanager.cpp b/src/audiomanager.cpp
index cb3ccd33..855ee5fa 100644
--- a/src/audiomanager.cpp
+++ b/src/audiomanager.cpp
@@ -474,13 +474,13 @@ void AudioManager::seek(qint64 position)
void AudioManager::skipForward()
{
qCDebug(kastsAudio) << "AudioManager::skipForward";
- seek(std::min((position() + SKIP_STEP), duration()));
+ seek(std::min((position() + (1000 * SettingsManager::skipForward())), duration()));
}
void AudioManager::skipBackward()
{
qCDebug(kastsAudio) << "AudioManager::skipBackward";
- seek(std::max((qint64)0, (position() - SKIP_STEP)));
+ seek(std::max((qint64)0, (position() - (1000 * SettingsManager::skipBackward()))));
}
bool AudioManager::canGoNext() const
diff --git a/src/audiomanager.h b/src/audiomanager.h
index a307b76b..936a1b9e 100644
--- a/src/audiomanager.h
+++ b/src/audiomanager.h
@@ -53,7 +53,6 @@ class AudioManager : public QObject
public:
const double MAX_RATE = 1.0;
const double MIN_RATE = 2.5;
- const qint64 SKIP_STEP = 10000;
const qint64 SKIP_TRACK_END = 15000;
static AudioManager &instance()
diff --git a/src/qml/Settings/GeneralSettingsPage.qml b/src/qml/Settings/GeneralSettingsPage.qml
index 08514f43..e164f033 100644
--- a/src/qml/Settings/GeneralSettingsPage.qml
+++ b/src/qml/Settings/GeneralSettingsPage.qml
@@ -166,6 +166,40 @@ Kirigami.ScrollablePage {
SettingsManager.save();
}
}
+ MobileForm.FormDelegateSeparator {
+ below: prioritizeStreaming
+ above: skipForwardStep
+ }
+ MobileForm.FormTextDelegate {
+ id: skipForwardStep
+ text: i18nc("@label:spinbox", "Skip forward interval (in seconds)")
+ trailing :
+ Controls.SpinBox {
+ Layout.rightMargin: Kirigami.Units.gridUnit
+ value: SettingsManager.skipForward
+ from: 1
+ to: 300
+ onValueModified: {
+ SettingsManager.skipForward = value;
+ SettingsManager.save();
+ }
+ }
+ }
+ MobileForm.FormTextDelegate {
+ id: skipBackwardInterval
+ text: i18nc("@label:spinbox", "Skip backward interval (in seconds)")
+ trailing :
+ Controls.SpinBox {
+ Layout.rightMargin: Kirigami.Units.gridUnit
+ value: SettingsManager.skipBackward
+ from: 1
+ to: 300
+ onValueModified: {
+ SettingsManager.skipBackward = value;
+ SettingsManager.save();
+ }
+ }
+ }
}
}
diff --git a/src/settingsmanager.kcfg b/src/settingsmanager.kcfg
index 4bcac20c..e48fdc3f 100644
--- a/src/settingsmanager.kcfg
+++ b/src/settingsmanager.kcfg
@@ -123,6 +123,18 @@
50,75,100,125,150,175,200,225,250
+
+
+ 1
+ 300
+ 10
+
+
+
+ 1
+ 300
+ 10
+