mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 00:17:23 -06:00
FEATURE: Added option to skip torrent deletion confirmation (Ville Kiiskinen)
This commit is contained in:
@@ -1009,6 +1009,12 @@ public:
|
||||
setValue(QString::fromUtf8("Preferences/Advanced/updateCheck"), enabled);
|
||||
}
|
||||
#endif
|
||||
bool confirmTorrentDeletion() const {
|
||||
return value(QString::fromUtf8("Preferences/Advanced/confirmTorrentDeletion"), true).toBool();
|
||||
}
|
||||
void setConfirmTorrentDeletion(bool enabled) {
|
||||
setValue(QString::fromUtf8("Preferences/Advanced/confirmTorrentDeletion"), enabled);
|
||||
}
|
||||
};
|
||||
|
||||
#endif // PREFERENCES_H
|
||||
|
||||
Reference in New Issue
Block a user