Add fastresume to desktop app

This commit is contained in:
Igor Katson 2024-08-21 22:58:02 +01:00
parent e8ef1f170d
commit eb2b9e5a41
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
5 changed files with 22 additions and 1 deletions

View file

@ -53,6 +53,9 @@ pub struct RqbitDesktopConfigPersistence {
#[serde(default)]
pub folder: PathBuf,
#[serde(default)]
pub fastresume: bool,
/// Deprecated, but keeping for backwards compat for serialized / deserialized config.
#[serde(default)]
pub filename: PathBuf,
@ -77,6 +80,7 @@ impl Default for RqbitDesktopConfigPersistence {
Self {
disable: false,
folder,
fastresume: false,
filename: PathBuf::new(),
}
}