Skip to content

Commit

Permalink
Add interval settings for QML (issue #2147)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Sep 16, 2021
1 parent f069e02 commit b9a96de
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions src/gui-qml/src/components/settings/SourceSettingsScreen.qml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,62 @@ Page {
visible: !useDefaultApiOrderSetting.value
}

SettingTitle {
Layout.fillWidth: true
text: qsTr("Download")
}
// FIXME(Bionus): Not supported by the AsyncImageProvider at the moment
/*SpinBoxSetting {
name: qsTr("Interval (thumbnail)")
max: 60 * 60
setting: Setting {
key: "download/throttle_thumbnail"
def: 0
obj: root.site.settings
}
Layout.fillWidth: true
}*/
SpinBoxSetting {
name: qsTr("Interval (image)")
max: 60 * 60
setting: Setting {
key: "download/throttle_image"
def: 0
obj: root.site.settings
}
Layout.fillWidth: true
}
SpinBoxSetting {
name: qsTr("Interval (page)")
max: 60 * 60
setting: Setting {
key: "download/throttle_page"
def: 0
obj: root.site.settings
}
Layout.fillWidth: true
}
SpinBoxSetting {
name: qsTr("Interval (details)")
max: 60 * 60
setting: Setting {
key: "download/throttle_details"
def: 0
obj: root.site.settings
}
Layout.fillWidth: true
}
SpinBoxSetting {
name: qsTr("Interval (error)")
max: 60 * 60
setting: Setting {
key: "download/throttle_retry"
def: 0
obj: root.site.settings
}
Layout.fillWidth: true
}

Item {
Layout.fillHeight: true
}
Expand Down

0 comments on commit b9a96de

Please sign in to comment.