Skip to content

Commit

Permalink
Fix base.fs->file naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Gigas002 committed Apr 3, 2024
1 parent 78fb18a commit 8669428
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions wayshot/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub struct Base {
pub output: Option<String>,
pub cursor: Option<bool>,
pub clipboard: Option<bool>,
pub fs: Option<bool>,
pub file: Option<bool>,
pub stdout: Option<bool>,
pub log_level: Option<String>,
}
Expand All @@ -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()),
}
Expand Down
2 changes: 1 addition & 1 deletion wayshot/src/wayshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8669428

Please sign in to comment.