Skip to content

Commit 1152e6f

Browse files
authored
Merge pull request #9 from cloudy-org/fix/output-folder
fix: output folder not used
2 parents 90314fc + 405f723 commit 1152e6f

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed

authors.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[[authors]]
22
name = "Ananas"
3-
github = "r3tr0ananas"
3+
github = "ananasmoe"
44

src/image.rs

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,16 @@ impl Image {
4040
}
4141
}
4242

43-
pub fn create_output(&self, options: &UpscaleOptions) -> PathBuf {
43+
pub fn create_output(&self, options: &UpscaleOptions) -> String {
4444
let model = &options.model.clone().unwrap();
4545
let extension = &options.output_ext.to_string().to_lowercase();
4646

47-
let out = self.path.with_file_name(
48-
format!(
49-
"{}_{}_x{}.{}",
50-
self.path.file_stem().unwrap().to_string_lossy(),
51-
model.name,
52-
&options.scale,
53-
extension
54-
)
55-
);
56-
57-
out
47+
format!(
48+
"{}_{}_x{}.{}",
49+
self.path.file_stem().unwrap().to_string_lossy(),
50+
model.name,
51+
&options.scale,
52+
extension
53+
)
5854
}
5955
}

src/windows/about.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl<'a> AboutWindow<'a> {
3636
authors: authors_toml_to_about_authors(&AUTHORS.to_string()),
3737
webpage: "https://github.com/cloudy-org/aeternum".to_string(),
3838
git_repo: "https://github.com/cloudy-org/aeternum".to_string(),
39-
copyright: "Copyright (C) 2024 Ananas".to_string()
39+
copyright: "Copyright (C) 2024-2025 Ananas".to_string()
4040
};
4141

4242
let about_widget = About::new(

0 commit comments

Comments
 (0)