From 866942830e263d46be0417e2788a16bfcd74f400 Mon Sep 17 00:00:00 2001 From: gigas002 Date: Wed, 3 Apr 2024 20:14:18 +0900 Subject: [PATCH] Fix base.fs->file naming --- wayshot/src/config.rs | 4 ++-- wayshot/src/wayshot.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wayshot/src/config.rs b/wayshot/src/config.rs index 9a2ee0e6..f9b8bde9 100644 --- a/wayshot/src/config.rs +++ b/wayshot/src/config.rs @@ -39,7 +39,7 @@ pub struct Base { pub output: Option, pub cursor: Option, pub clipboard: Option, - pub fs: Option, + pub file: Option, pub stdout: Option, pub log_level: Option, } @@ -50,7 +50,7 @@ impl Default for Base { output: None, cursor: Some(false), clipboard: Some(false), - fs: Some(true), + file: Some(true), stdout: Some(false), log_level: Some("info".to_string()), } diff --git a/wayshot/src/wayshot.rs b/wayshot/src/wayshot.rs index b31d2494..78641a01 100644 --- a/wayshot/src/wayshot.rs +++ b/wayshot/src/wayshot.rs @@ -94,7 +94,7 @@ fn main() -> Result<()> { } } _ => { - if base.fs.unwrap_or_default() { + if base.file.unwrap_or_default() { let dir = file.path.unwrap_or(env::current_dir().unwrap_or_default()); Some(utils::get_full_file_name(&dir, &filename_format, encoding)) } else {