mirror of https://github.com/KDE/kasts.git
Enable setting for automatic download of new episodes
This commit is contained in:
parent
d224eb1b24
commit
236c579bef
|
@ -69,7 +69,7 @@ DataManager::DataManager()
|
|||
QString id = query.value(QStringLiteral("id")).toString();
|
||||
addToQueue(feedurl, id);
|
||||
if (SettingsManager::self()->autoDownload()) {
|
||||
if (getEntry(id)->hasEnclosure()) {
|
||||
if (getEntry(id) && getEntry(id)->hasEnclosure() && getEntry(id)->enclosure()) {
|
||||
qDebug() << "Start downloading" << getEntry(id)->title();
|
||||
getEntry(id)->enclosure()->download();
|
||||
}
|
||||
|
|
|
@ -38,15 +38,14 @@ Kirigami.ScrollablePage {
|
|||
}
|
||||
}
|
||||
|
||||
// TODO: implement this
|
||||
/*Controls.CheckBox {
|
||||
Controls.CheckBox {
|
||||
id: autoDownload
|
||||
checked: SettingsManager.autoDownload
|
||||
text: i18n("Automatically download new episodes")
|
||||
|
||||
enabled: autoQueue.checked
|
||||
onToggled: SettingsManager.autoDownload = checked
|
||||
}*/
|
||||
}
|
||||
|
||||
Kirigami.Heading {
|
||||
Kirigami.FormData.isSection: true
|
||||
|
@ -63,7 +62,6 @@ Kirigami.ScrollablePage {
|
|||
to: 20
|
||||
|
||||
onValueModified: SettingsManager.articleFontSize = value
|
||||
|
||||
}
|
||||
|
||||
Controls.CheckBox {
|
||||
|
|
Loading…
Reference in New Issue