diff options
Diffstat (limited to 'src/select/mod.rs')
-rw-r--r-- | src/select/mod.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/select/mod.rs b/src/select/mod.rs index 6774ce6..2288e1a 100644 --- a/src/select/mod.rs +++ b/src/select/mod.rs @@ -18,7 +18,7 @@ use std::{ use crate::{ app::App, cli::CliArgs, - constants::{last_select, HELP_STR}, + constants::HELP_STR, storage::video_database::{getters::get_videos, VideoStatus}, }; @@ -111,11 +111,8 @@ pub async fn select(app: &App, done: bool) -> Result<()> { } let read_file = temp_file.reopen()?; - fs::copy( - temp_file.path(), - last_select().context("Failed to get the persistent selection file path")?, - ) - .context("Failed to persist selection file")?; + fs::copy(temp_file.path(), &app.config.paths.last_selection_path) + .context("Failed to persist selection file")?; let reader = BufReader::new(&read_file); |